我想將以下JS更改爲Jquery。但我不知道如何將參數傳遞給Jquery中的點擊事件。任何人都可以幫助我,謝謝!如何將參數傳遞給Jquery中的單擊事件
<script type="text/javascript">
function display(id){
alert("The ID is "+id);
}
</script>
<input id="btn" type="button" value="click" onclick="display(this.id)" />