ajaxFileUpload plugin上传文件 chrome、Firefox中出现SyntaxE
生活随笔
收集整理的這篇文章主要介紹了
ajaxFileUpload plugin上传文件 chrome、Firefox中出现SyntaxE
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
2019獨角獸企業重金招聘Python工程師標準>>>
uploadHttpData:?function(?r,?type?)?{var?data?=?!type;data?=?type?==?"xml"?||?data???r.responseXML?:?r.responseText;//?If?the?type?is?"script",?eval?it?in?global?contextif?(?type?==?"script"?)jQuery.globalEval(?data?);//?Get?the?JavaScript?object,?if?JSON?is?used.if?(?type?==?"json"?)?{以下為新增代碼///data?=?r.responseText;var?start?=?data.indexOf(">");if(start?!=?-1)?{var?end?=?data.indexOf("<",?start?+?1);if(end?!=?-1)?{data?=?data.substring(start?+?1,?end);}}///以上為新增代碼///eval(?"data?=?"?+?data);}//?evaluate?scripts?within?htmlif?(?type?==?"html"?)jQuery("<div>").html(data).evalScripts();return?data;}將<pre></pre>標簽去掉
轉載于:https://my.oschina.net/hycx227/blog/480097
新人創作打卡挑戰賽發博客就能抽獎!定制產品紅包拿不停!總結
以上是生活随笔為你收集整理的ajaxFileUpload plugin上传文件 chrome、Firefox中出现SyntaxE的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Android -- App生成快捷方式
- 下一篇: 你可能不需要 jQuery!使用原生 J