使用引用 jQuery Mobile 的脚本我有以下行:
<a href="#" id="buttonAnswer1" data-role="button" data-inline="true" >check</a>
当单击此按钮并调用 hello() 函数时,我将如何添加一个侦听器?IE
<a href="#" id="buttonAnswer1" data-role="button" data-inline="true">check</a>
<script>
function hello(){
console.log("hello world");
}
</script>