Where am I wrong?
Where am I wrong?
Code:
$( "#listview_1" ).listview({
create:
function(event, ui) {
alert('创建个listview');
}
});
Error message:
mobile.html:12
Uncaught TypeError: Cannot read property 'jQuery182037365721934475005' of undefined
jquery.mobile-1.2.0.js:8522
$.widget._createSubPages
jquery.mobile-1.2.0.js:8522
$.widget.$.widget.extend.widgetEventPrefix
jquery.mobile-1.2.0.js:557
$.widget.refresh
jquery.mobile-1.2.0.js:8174
$.widget.$.widget.extend.widgetEventPrefix
jquery.mobile-1.2.0.js:557
$.widget._create
jquery.mobile-1.2.0.js:7988
$.widget.$.widget.extend.widgetEventPrefix
jquery.mobile-1.2.0.js:557
$.Widget._createWidget
jquery.mobile-1.2.0.js:753
$.widget._createWidget
jquery.mobile-1.2.0.js:1101
$.widget.$.widget.extend.widgetEventPrefix
jquery.mobile-1.2.0.js:557
$.widget.$.(anonymous function).(anonymous function)
jquery.mobile-1.2.0.js:507
$.widget.bridge.$.fn.(anonymous function)
jquery.mobile-1.2.0.js:698
jQuery.extend.each
jquery-1.8.2.js:611
jQuery.fn.jQuery.each
jquery-1.8.2.js:241
$.widget.bridge.$.fn.(anonymous function)
jquery.mobile-1.2.0.js:692
(anonymous function)
mobile.html:14
jQuery.Callbacks.fire
jquery-1.8.2.js:974
jQuery.Callbacks.self.fireWith
jquery-1.8.2.js:1082
jQuery.extend.ready
jquery-1.8.2.js:406
DOMContentLoaded
jquery-1.8.2.js:83
Topic Participants
futuredreamwangxin12345678
peter.aganyo
yuhua0424
gulian