闭包和作用域链是JavaScript中比较重要的概念, 首先,看看几段简单的代码。 var name = stephenchan; var age = 23; function myFunc() { alert(name); var name = endlesscode; alert(name); alert(age); alert(weight); } myFunc(); myFunc(); 上述代码1中,两次调用myFunc()的输出是一致的。可能你会..
Jan WolterNote: I have stopped updating this page. At this point nearly all popular browsers are have achieved a good level of compatibility on most of these features, and their behavior with respect to them just isn't changing much anymore. The only thing web designers really need to still watch out for is IE8, wh..
flipsnap.js是一款模拟手机浏览器滑动效果的类库,支持电脑上鼠标按下滑动和手机浏览器触摸滑动效果flipsnap.js使用指南1,导入flipsnap.js类库(flipsnap.js不依赖其他js类库)script src=flipsnap.js/script2,编写html代码html代码示例如下,外层html样式为.viewport,内层元素样式为.flipsnap。div class=viewport div class=flipsna..
html file控件的onchange事件,在选中同一个文件时是不会触发的。要想file选中同一个文件onchange事件也触发,可以创建一个新file对象,透明浮动覆盖在显示的file对象上,这样操作的就是新file对象,即使选中同一个文件也会触发onchange事件了。注意:提交表单时需要移除那个透明的同名file对象,要不服务器端使用name来获取控件会出错。 ..
echarts图标如何显示在extjs的panel对象中。 Ext整合显示echarts源代码如下!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01//EN http://www.w3.org/TR/html4/strict.dtdhtmlheadmeta http-equiv=Content-Type content=text/html; charset=utf-8 /titleExt中整合echarts示例/titlelink rel=stylesheet type=text/css href=../../resources/cs..
打开iis7.5控制台,点击网站节点时报错:Windows Process Activation Service 在从文件\\?\F:\Windows\system32\inetsrv\config\applicationHost.config中的第426行为配置节system.applicationHost/sites读取配置数据时出现错误。错误信息为:在组合的密钥属性protocol, bindingInformation分别设置为http, *:80:h.w3dev.cn时,无法添加类型为..
asp的files集合不是数组,所以无法通过索引访问files集合中的项目,也没有提供相关方法进行访问。 解决办法:遍历files对象后将文件名存入数组中。 asp files集合如何通过索引访问对象源代码如下% set fso=server.CreateObject(scripting.filesystemobject) folder=Server.MapPath(.) set fd=fso.GetFolder(folder) set f..
php文件上传时提示File upload error - unable to create a temporary file in Unknown on line 0错误(系统环境:window2003+IIS6+FastCGI+PHP5.3.4),出现这个错误是因为php上传的文件先保存到临时目录中,然后再从临时目录拷贝到目标目录去,如果临时目录没有网站用户写入权限就会报错。 不是搞php,不懂php默认上传路径在哪里(有人..