我已經搜索了FineUploader文檔,但是當我設置我的上傳按鈕文本如下所示時,更改似乎不會傳播。上傳按鈕仍然顯示默認文本。我錯過了什麼?FineUploader按鈕文本
var manualuploader = new qq.FileUploader({
element: document.getElementById('manual-fine-uploader'),
text: {
uploadButton: "Select a File" // <========== Setting text here
},
action: "/file/upload",
autoUpload: false,
multiple: false,
forceMultipart: true,
onComplete: function (id, fileName, json) {
$("#divFileUploadLoading").hide();
$("#buttonUploadFile").show();
if (json.success) {
displaySuccessMessage("Successfully uploaded: " + fileName);
$("#textFileTitle").val("");
$("#textFileDescription").val("");
$("#checkIsDownloadable").prop("checked", true);
$("#checkDisplayDetails").prop("checked", true);
}
else {
displayErrorMessage("Failed to upload: " + fileName + " because '" + json.errorMessage + "'");
}
g_FileCount = 0;
manualuploader.clearStoredFiles();
manualuploader.reset();
},
onSubmit: function (id, fileName) {
g_FileCount++;
},
onCancel: function (id, fileName) {
$("#divFileUploadLoading").hide();
$("#buttonUploadFile").show();
displaySuccessMessage("Canceled upload for: " + fileName);
g_FileCount--;
}
});
控制檯中的任何錯誤? – 2013-03-18 14:56:28
@ShadowWizard No.事實上,一切正常。只是文字沒有設置。 – rhughes 2013-03-18 15:16:04
任何方式讓你設置jsfiddle演示重現問題?快速瀏覽一下,看起來圖書館會花錢,在這種情況下,您應該得到圖書館開發人員的個人支持。 – 2013-03-18 15:19:18