handlers.js
来自「用flash做的网页上传工具」· JavaScript 代码 · 共 24 行
JS
24 行
/* **********************
Event Handlers
These are my custom event handlers to make my
web application behave the way I went when SWFUpload
completes different tasks. These aren't part of the SWFUpload
package. They are part of my application. Without these none
of the actions SWFUpload makes will show up in my application.
********************** */
function fileDialogComplete(numFilesSelected, numFilesQueued) {
this.startUpload();
}
function uploadSuccess(file, serverData) {
try {
document.getElementById("divStatus").innerHTML = this.getStats().successful_uploads + " files uploaded";
var p = document.createElement("p");
p.innerHTML = "FlashCookie set to " + serverData;
document.getElementById("divCookieValues").appendChild(p);
} catch (ex) {
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?