outsiderlcy 2013-03-28
不可以跳转 <a href="javascript:;" onclick="javascript:ToUrl('http://www.jingzhengli.cn');"> location.href不跳转测试1</a> <a href="javascript:void(0);" onclick="javascript:ToUrl('http://www.jingzhengli.cn');"> location.href不跳转测试2</a> 可以跳转 <a href="javascript:void(0);" onclick="javascript:ToUrl('http://www.jingzhengli.cn');return false;"> location.href不跳转测试3</a> <a href="#" onclick="javascript:ToUrl('http://www.jingzhengli.cn');"> location.href不跳转测试4</a> <a href="###" onclick="javascript:ToUrl('http://www.jingzhengli.cn');"> location.href不跳转测试5</a>