web前端-javascript
Even713
这个作者很懒,什么都没留下…
展开
-
判断一个js对象是不是数组
[code="java"]function isArray(o) { return Object.prototype.toString.call(o) === '[object Array]'; } [/code]判断更多特殊类型:[code="java"]var is = { types : ["Array","RegExp","Date...2010-04-08 13:49:06 · 107 阅读 · 0 评论 -
对原型属性进一步的理解
今天碰到了个问题,如下function s(){};s.prototype={ _cols:[], drawTitle:function(titles){ for(var j=0;j<titles.length;j++){ this._cols[j]=titles[j]; } }}...2010-04-15 21:26:39 · 156 阅读 · 0 评论 -
IE bug--appending hash to title when a page include any flash
What steps will reproduce the problem?1. Including any flash in a page, dynamically or not2. Redirecting to the page with a hash in its url http://url#hash3. In IE7 the tabs and windows title are chan...原创 2010-06-24 13:06:08 · 137 阅读 · 0 评论 -
Event对象之我的理解
前两天在发行正当口碰到个Bug,是我introduced,让我非常紧张,感到惭愧。大致是这样的一个问题,我写段能描述问题的代码:<body><div id="haha">sijoerere<select id="dd" onchange="abc(event)" id="dd"> <option value原创 2010-10-25 11:46:16 · 211 阅读 · 0 评论 -
学习 nodejs - 环境安装配置
安装指南在此https://github.com/joyent/node/wiki/InstallationInstalling on WindowsManual installInstalling Node manually is recommended as a workaround for any problems with automatic install. You a...原创 2014-10-05 15:18:32 · 255 阅读 · 0 评论 -
ExpressJS 安装
运行npm install -g express 安装后,跑express -help,出现错误express不是内部命令。参看http://jingyan.baidu.com/article/922554468a3466851648f419.html由于express版本升级,需要装依赖generratornpm install -g express-generator ...原创 2014-10-05 18:52:32 · 223 阅读 · 0 评论 -
expressJS 学习
THE DEAD-SIMPLE STEP-BY-STEP GUIDE FOR FRONT-END DEVELOPERS TO GETTING UP AND RUNNING WITH NODE.JS, EXPRESS, JADE, AND MONGODBhttp://cwbuecheler.com/web/tutorials/2013/node-express-mongo/ Node...原创 2014-10-07 18:11:14 · 225 阅读 · 0 评论