3
我使用jQuery的文件上傳插件使用jQuery UI我如何可以覆蓋jQuery的文件上傳插件選項
https://github.com/blueimp/jQuery-File-Upload/wiki/Options
我想overiride像maxUploadfilesize
當前小部件的選項,如果我在此改變的設定主文件jquery.fileupload-ui.js
然後它
var parentWidget = ($.blueimpFP || $.blueimp).fileupload;
$.widget('blueimpUI.fileupload', parentWidget, {
options: {
// By default, files added to the widget are uploaded as soon
// as the user clicks on the start buttons. To enable automatic
// uploads, set the following option to true:
autoUpload: true,
//sequentialUploads, true,
// The following option limits the number of files that are
// allowed to be uploaded using this widget:
maxNumberOfFiles: undefined,
// The maximum allowed file size:
maxFileSize: 20000000,
// The minimum allowed file size:
minFileSize: undefined,
有沒有什麼辦法可以在此改變,在我的HTML模板,這樣我可以有不同的html頁面
我的意思是一些javvscript代碼,我可以把模板,覆蓋默認設置不同的自定義
感謝好友時,該藉機d – user825904