2009年1月22日

JS 问号运算符的问题

摘要: oPageHref.href = "http://" + bTest?arrSections[i]:"none"; 这句语句的运行顺序不是所想的: "http://" + (bTest?arrSections[i]:"none"); 相反地是: ( "http://"+bT... 阅读全文

posted @ 2009-01-22 00:50 norsd 阅读(221) 评论(0) 推荐(0) 编辑

JS 链接节点的问题

摘要: empty 这其中对一个链接点的操作: oA.innerText = "www.my.com"; oA.href = "www.other.com"; 然后结果 oA.innerText 自动变为 www.other.com 如果 oA.href ... 阅读全文

posted @ 2009-01-22 00:42 norsd 阅读(119) 评论(0) 推荐(0) 编辑

导航