Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/75.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jquery-ui/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
jqueryshapeshift插件_Jquery_Jquery Ui_Jquery Mobile_Jquery Plugins - Fatal编程技术网

jqueryshapeshift插件

jqueryshapeshift插件,jquery,jquery-ui,jquery-mobile,jquery-plugins,Jquery,Jquery Ui,Jquery Mobile,Jquery Plugins,我试图触发插件“jQuery Shapeshift”的事件,但没有了解它的工作方式。有人知道我代码中的错误吗?是否是错误的事件(pageinit),我应该将函数放在其他位置?我的问题是什么。。请帮助:/ 顺便说一句,我的网格已正确初始化,功能正在运行(shapeshifted…),但事件触发不起作用 活动: 我的尝试: $( document ).on( "pageinit", "#entry", function( event ) { initializeGrid(); &

我试图触发插件“jQuery Shapeshift”的事件,但没有了解它的工作方式。有人知道我代码中的错误吗?是否是错误的事件(pageinit),我应该将函数放在其他位置?我的问题是什么。。请帮助:/

顺便说一句,我的网格已正确初始化,功能正在运行(shapeshifted…),但事件触发不起作用

活动:

我的尝试:

$( document ).on( "pageinit", "#entry", function( event ) {

    initializeGrid();

    <!-- onMove -->
    var $containers = $(".ss-container");
    $containers.on("ss-rearranged", function(e, selected) {
        alert('hi');
    });
    <!-- end onMove -->

}); <!-- end event page init -->
$(document).on(“pageinit”,“条目”,函数(事件){
initializeGrid();
var$containers=$(“.ss container”);
$containers.on(“ss重新排列”,函数(e,选定){
警报(“hi”);
});
}); 

将重新排列的
绑定更改为如下所示:

$(document).on("ss-rearranged", ".ss-container" ,function(e, selected) {
    alert('hi');
});
并将其移出
pageinit
事件