摘要: Link:http://stackoverflow.com/questions/11571923/instanceof-string-not-behaving-as-expected-in-google-apps-script这里描述的是instanceof和typeof关键字的区别,值得引起注意 阅读全文
posted @ 2013-12-23 17:56 卜海清 阅读(213) 评论(0) 推荐(0)
摘要: 下面是一个Common的Solution'use strict'; // Universal Module Definition (UMD) to support AMD, CommonJS/Node.js, // Rhino, and plain browser loading. if (typeof define === 'function' && define.amd) { ... } else if (typeof exports !== 'undefined') { ... } else { ... } 阅读全文
posted @ 2013-12-23 17:26 卜海清 阅读(887) 评论(0) 推荐(0)