《悟透javascript》学习笔记
《悟透javascript》学习笔记
一、 前言
http://blog.csdn.net/soldierluo/archive/2010/02/25/5326520.aspx
二、 回归简单、基本类型
http://blog.csdn.net/soldierluo/archive/2010/02/25/5326524.aspx
三、 表演、似类却不是类
http://blog.csdn.net/soldierluo/archive/2010/02/25/5326528.aspx
四、 函数的魔力
http://blog.csdn.net/soldierluo/archive/2010/02/25/5326535.aspx
五、 奇妙的对象
http://blog.csdn.net/soldierluo/archive/2010/02/25/5326536.aspx
六、 放下对象
http://blog.csdn.net/soldierluo/archive/2010/02/25/5326539.aspx
七、 对象描述
http://blog.csdn.net/soldierluo/archive/2010/02/25/5326541.aspx
八、 构造对象
http://blog.csdn.net/soldierluo/archive/2010/02/25/5326542.aspx
九、 原型毕露
http://blog.csdn.net/soldierluo/archive/2010/02/25/5326544.aspx
十、 原型扩展
http://blog.csdn.net/soldierluo/archive/2010/02/25/5326547.aspx
十一、 深入继承
http://blog.csdn.net/soldierluo/archive/2010/02/28/5333884.aspx
相关文档:
<body oncontextmenu="return false" onselectstart="return false" ondragstart="return false" onbeforecopy="return false" onmouseup=document.selection.empty() oncopy=document.selection.empty() onselect=document.selection.empty()></body>
讲上面红色显示的插入到网页中就可以实现鼠标右击无效
......
1. 应用 Array.prototype.join实现字符合并
方法1.
String.prototype.times = function(n) {
return Array.prototype.join.call({length:n+1}, this);
};
"js".times(5) // => "jsjsjsjsjs"
方法2.
var ArrayTest=new Array("HE","LL","O");
var hello = Array.prot ......
在开发一个缴费交易时,先发送查询请求到系统A,系统A返回一个字符串格式的欠费金额,因为是定长的,所以都是前补0,本来需要先做处理的,但是由于查询结果如果是欠费的,客户发起缴费交易时,会送给系统B的格式,与系统A返回的是一样的,因此就原样保存然后上送,可是在系统测试时,却发现了一个奇怪的现象,系统A返回的查 ......
reg = /^((((((0[48])|([13579][26])|([2468][048]))00)|([0-9][0-9]((0[48])|([13579][26])|([2468][048]))))-02-29)|(((000[1-9])|(00[1-9][0-9])|(0[1-9][0-9][0-9])|([1-9][0-9][0-9][0-9]))-((((0[13578])|(1[02]))-31)|(((0[1,3-9])|(1[0-2]))-(29|30))|(((0[1-9])|(1[0-2]))-((0[1-9])|(1[0-9])|(2[0-8]))))))$/i; ......
一、介绍与Flash动画控制有关的javascript函数:
函数名 使用 &n ......