Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

parseJS添加一些注释 execScript在IE有局限性

  • Loading branch information...
commit 3158d15474e25df961de9b54294718dd8432f060 1 parent 23d61cf
@RubyLouvre authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  lang.js
View
2  lang.js
@@ -281,6 +281,8 @@ define("lang", Array.isArray ? ["mass"] : ["lang_fix"], function($) {
parseJS: function(code) {
//IE中,global.eval()和eval()一样只在当前作用域生效。
//Firefox,Safari,Opera中,直接调用eval()为当前作用域,global.eval()调用为全局作用域。
+ //window.execScript 在IE下一些限制条件
+ //http://www.ascadnetworks.com/Guides-and-Tips/IE-error-%2522Could-not-complete-the-operation-due-to-error-80020101%2522
if(code && /\S/.test(code)) {
try {
global[seval](code);
Please sign in to comment.
Something went wrong with that request. Please try again.