使用多个select与$ .mobile.urlHistory一起使用

时间:2013-03-11 17:27:02

标签: jquery-mobile

在我使用的表单中

<select name="vchoice" id="vchoice" multiple data-native-menu="false" data-icon="grid" data-iconpos="left">

在新窗口中打开,因为选项列表很长。

但现在使用关闭图标不起作用。 我发现这是因为我也在使用它:

$(document).on( 'pagebeforecreate', 'body', function () { 
  $.mobile.urlHistory.stack = []; 
  $.mobile.urlstack = []; 
  $( '.ui-page' ).not( '.ui-page-active' ).remove(); 
});

有没有办法可以毫无问题地使用它们?

由于 费边

0 个答案:

没有答案
相关问题