代码
提交代码
<script>
function log(who) {
console.log('点击了:' + who);
return who;
}
</script>
<a href="javascript: log('add');">添加</a>
<a href="javascript: log('update');">修改</a>
<a href="javascript: log('delete');">删除</a>
运行结果