jquery写onclick事件取消了还是执行命令

function empDelAlert(){
return confirm(确定删除: ?);

〈a href=# onclick=“return empDelAlert();”〉

解决方法,去掉function中的冒号或给其正确赋值
posted @ 2014-09-26 20:21  chen0h  阅读(106)  评论(0)    收藏  举报