小编Yas*_*sko的帖子

jquery mobile Panel滑动功能导致错误

我有这么难的时间,我有一个使用mootools的翻转时钟,然后使用Yahoo API的天气小部件,现在我不知道是什么原因造成的

"在初始化之前无法在面板上调用方法;尝试调用方法'open'"

所以我按照这个演示,http://view.jquerymobile.com/master/docs/examples/panels/panel-swipe-open.php#demo-page,现在我收到了错误.

$( document ).on( "pageinit", "#demo-page", function() {
$( document ).on( "swipeleft swiperight", "#demo-page", function( e ) {
    // We check if there is no open panel on the page because otherwise
    // a swipe to close the left panel would also open the right panel (and v.v.).
    // We do this by checking the data that the framework stores on the page element (panel: open).
    if ( $.mobile.activePage.jqmData( "panel" ) !== "open" ) { …
Run Code Online (Sandbox Code Playgroud)

jquery initialization panel swipe jquery-mobile

4
推荐指数
1
解决办法
5392
查看次数

标签 统计

initialization ×1

jquery ×1

jquery-mobile ×1

panel ×1

swipe ×1