我希望在崇高的条件下运行这些代码,但是我不知道如何链接适当的Javasript / JQuery.
任何帮助将不胜感激. (这是我的第一个问题):)
jQuery UI Effects - Toggle Demo.toggler {
width: 500px;
height: 200px;
}
#button {
padding: .5em 1em;
text-decoration: none;
}
#effect {
position: relative;
width: 240px;
height: 135px;
padding: 0.4em;
}
#effect h3 {
margin: 0;
padding: 0.4em;
text-align: center;
}
$(function() {
// run the currently selected effect
function runEffect() {
// get effect type from
var selectedEffect = $( "#effectTypes" ).val();
// most effect types need no options passed by default
var options = {};
// some effects have required parameters
if ( selectedEffect === "scale" ) {
options = { percent: 0 };
} else if ( selectedEffect === "size" ) {
options = { to: { width: 200, height: 60 } };
}
// run the effect
$( "#effect" ).toggle( selectedEffect, options, 500 );
};
// set effect from select menu value
$( "#button" ).click(function() {
runEffect();
});
});
Blind
Bounce
Clip
Drop
Explode
Fold
Highlight
Puff
Pulsate
Scale
Shake
Size
Slide
Run Effect
解决方法:
对于jQuery,您可以使用托管版本,如下所示:
对于jQuery UI,
我认为您不需要Java的任何额外文件,因为它包含在< script>< / script>标签
标签:sublimetext3,javascript,jquery
来源: https://codeday.me/bug/20191027/1943402.html