当前位置: 代码迷 >> Web前端 >> jqm中创办自定义widget
  详细解决方案

jqm中创办自定义widget

热度:86   发布时间:2013-03-14 10:33:15.0
jqm中创建自定义widget

?

? ?用了jqm那么久,难得还没有自己写过一个widget,那就来吧!

?

(function($,window){

        $.widget("mobile.myWidget",$.mobile.widget,{

               //_create
               _create:function(){


               }


               //自定义方法

        });


        //..
        $(document).bind("pagecreate create",function(e){
             $.mobile.myWidget.prototype.enhanceWithin(e.target);
        });

})(jQuery,this)

?

  相关解决方案