摘要:
var a = "asdfghjkl" alert(a.substr(1, 3)); // 从下标为1开始,往右数3个长度的数, 显示 sdf; alert(a.substring(1, 3)); // 从下标为1开始,到下标为3结束(左闭右开), 显示 sd; alert(a.indexOf("s 阅读全文
摘要:
function getRowObj(obj) { while(obj.tagName.toLowerCase()!="tr") // toLowerCase转化小写 { obj=obj.parentNode; } // 得到父节点 return obj; } function sc(obj) // 阅读全文
摘要:
<link rel="shortcut icon" href="1.ico"> href="图片名字.ico"; 图片后缀名为: .ico 阅读全文