我正在尝试在 jQuery Mobile 按钮上制作一个简单的淡入淡出和淡入淡出,但它似乎不起作用?
该示例在 jsfiddle 上: //jsfiddle.net/NXRBc/
JS:
function blinking(elm) {
setInterval(blink, 10);
function blink() {
elm.fadeOut(100, function() {
elm.fadeIn(100);
});
}
}
blinking($("#ONEButton"));
HTML:
<div data-role="content">
<div class="ui-grid-b" data-position="fixed">
<div class="ui-block-a"><button id="ONEButton" type="v" data-theme="d">ONE</button></div>
<div class="ui-block-b"><button type="v" data-theme="d">TWO</button></div>
<div class="ui-block-c"><button type="v" data-theme="d">THREE</button></div>
</div>
</div>