js & void() & void(0)
https://www.runoob.com/js/js-void.html
void()
<a href="javascript:void(0)">单击此处什么也不会发生</a>
<a href="javascript:void(alert('Warning!!!'))">点我!</a>
function getValue(){
var a,b,c;
a = void( b = 5, c = 7 );
document.write('a = ' + a + ' b = ' + b +' c = ' + c );
}
// a = undefined b = 5 c = 7
©xgqfrms 2012-2020
www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!