例: aa(); void(0)<script> function aa() {..} </script>这是什么意思?
The void() function causes the browser to take no redirection action upon clicking. In most modern, javascript-literate browsers you can accomplish the same disarming task by adding a "return false;" at the end of the onClick event code, but you'd still need to provide something in for the href property, so might as well make it javascript:void(0).you can actually have it invoke a javascript function like so: <a href="javascript:void(alert('You clicked.'))" >sss</a>http://www.hashemian.com/blog/2005/05/javascript-void-function-and-html.htm大概意思是防止当前页面重定向到其它页面或重新加载.
aa();
void(0)<script>
function aa()
{..}
</script>这是什么意思?
<a href="javascript:void(alert('You clicked.'))" >sss</a>http://www.hashemian.com/blog/2005/05/javascript-void-function-and-html.htm大概意思是防止当前页面重定向到其它页面或重新加载.