如果我在html中使用jquery函数和cholist作为id元素,我使用Firefox
<a onclick="cholist(this.id)" id="0">Title</a>
<script>
function cholist(id) {
alert(id);
}
</script>
字符串
但
<script>
function cholist(id) {
if (id='0'){alert(id);}
else {alert("no");}
}
</script>
型
不起作用
1条答案
按热度按时间1aaf6o9v1#
字符串