我想允许用户在某些页面上只上传 1 个文件,而在其他页面上只上传 1 个以上的文件。有地方可以改这个号码
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: false,
// The following option limits the number of files that are
// allowed to be uploaded using this widget:
maxNumberOfFiles: undefined,
但是如果我在这里更改它,它将应用于网站上的所有 jQuery Upload File 控件。如何自定义选项 maxNumberOfFiles 以实现我的目的。