事實(shí)上這個(gè)代碼可以繼續(xù)簡化,比如簡化成這樣: javascript: 34343+3434-222 5、防釣魚驗(yàn)證 某些釣魚網(wǎng)站提供的URL和網(wǎng)頁本身的URL是不一致的,你可以用下面的代碼進(jìn)行驗(yàn)證,當(dāng)兩個(gè)URL相差太大的時(shí)候,你就要稍加小心了: javascript:alert("The actual URL is:tt" + location.protocol + "http://" + location.hostname + "/" + "nThe address URL is:tt" + location.href + "n" + "nIf the server names do not match, this may be a spoof.");