Microsoft JScript运行时错误:对象不支持属性或方法’fileUpload’
我有问题将ajax和jquery函数应用于我的多个文件附件。 受影响的部分代码如下;
$(function () { $("[id*=FileUpload1]").fileUpload({ 'uploader': 'scripts/uploader.swf', 'cancelImg': 'images/cancel.png', 'buttonText': 'Attach Files', 'script': 'UploadCS.ashx', 'folder': 'uploads', 'multi': true, 'auto': true, 'onSelect': function (event, ID, file) { $("#attachedfiles tr").each(function () { if ($("td", this).eq(0).html() == file.name) { alert(file.name + " already uploaded."); $("[id*=FileUpload1]").fileUploadCancel(ID); return; } }); }, 'onComplete': function (event, ID, file, response, data) { $("#attachedfiles").append("" + file.name + " [x] "); } }); });
每当我在IE上通过VS2010运行应用程序时,它就会停止运行并且它会声明上面标题中所述的问题。 但是在Mozilla上,它运行但预期结果不会出现。 我已经看到了几个问题,但似乎没有帮助。 有帮助吗?
如果显式关闭,则浏览器不会识别脚本标记。
写下自闭脚本标签