需要URL作为参数需要转义的字符
需要对以下七个字符进行转义
% %25
& %26
+ %2B
/ %2F
# %23
= %3D
空格 %20
需要对以下七个字符进行转义
% %25
& %26
+ %2B
/ %2F
# %23
= %3D
空格 %20
《Dom Scripting》读书笔记 Canca 最近看了一本《Jeremy Keith: DOM Scripting, Web design with JavaScript and the DOM. Apr…
调用email的方法 //<a href="mailto:talantlee@126.com">Email</a>window.location.href="mailto:talantlee@126.com";myform.action="mailto:talant…
// 人的基類var Person=new ( function(){ var sex; var name; this.getSex=function() &nbs…
1>获取控件用document.getElementById,不用document.all(FF等浏览器不支持)2><button> 会被firefox解释为提交form或者刷新页面,需要写标准<button type="button">3>使用childN…
1>window.prompt(text, value) 簡單的基與模態窗體的對話框,(返回你輸入) var v=window.prompt("提示","請輸入你的名字")2>window.confirm(text,mess) 模態確認框(返回"是/否…
基本方法:attachEvent(IE)/detachEvent;addEventListener( Mozilla, Netscape, Firefox)/removeEventListener在之前的邏輯判斷式的基礎上,在設計javascript的時候,可以針對瀏覽器的不同,寫出適合不同種類瀏覽…