ajaxFileUpload plugin上传文件 chrome、Firefox中出现SyntaxE
生活随笔
收集整理的這篇文章主要介紹了
ajaxFileUpload plugin上传文件 chrome、Firefox中出现SyntaxE
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
2019獨(dú)角獸企業(yè)重金招聘Python工程師標(biāo)準(zhǔn)>>>
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>標(biāo)簽去掉
轉(zhuǎn)載于:https://my.oschina.net/hycx227/blog/480097
新人創(chuàng)作打卡挑戰(zhàn)賽發(fā)博客就能抽獎!定制產(chǎn)品紅包拿不停!總結(jié)
以上是生活随笔為你收集整理的ajaxFileUpload plugin上传文件 chrome、Firefox中出现SyntaxE的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Android -- App生成快捷方式
- 下一篇: 你可能不需要 jQuery!使用原生 J