摘要:
如果使用import方法对CSS进行导入,会导致某些页面在Windows 下的Internet Explorer出现一些奇怪的现象:以无样式显示页面内容的瞬间闪烁,这种现象称之为文档样式短暂失效(Flash of Unstyled Content),简称为FOUC.原因大致为:1,使用import方... 阅读全文
摘要:
define([], function() { var initializing = false; var fnTest = /xyz/.test(function(){xyz;}) ? /\b_super\b/ : /.*/; /* * 将 superProxy 提出来以优化性能... 阅读全文
摘要:
JQuery.proxy(function,context):使用context代替function中的context。比如:var you = { type: "person", test: function(event) { $("#log").append( this.type + ... 阅读全文