jQuery file upload里面的_create的调用和_initEventHandlers的调用

首先是jquery.ui.widget.js中_createWidget方法内部调用

this._create();
this._trigger( "create", null, this._getCreateEventData() );
this._init();

 然后按照下图所示,逐个文件触发_create

 

 _initEventHandlers被_create调用,然后逐文件调用如下

 

最后的执行顺序是

1.先执行jquery.fileupload.js里面的_initEventHandlers

2.jquery.fileupload-image-editor.js里面的_initEventHandlers

3.jquery.fileupload-ui.js里面的_initEventHandlers

其中2和3的执行顺序存疑

 

posted @ 2019-07-01 15:46  ChuckLu  阅读(325)  评论(0)    收藏  举报