javascript中函数字符参数传值报错

<button class="btn btn-dangerous btn-mini" type="button" onclick="deleteById(${stu.id })">删除</button> ${stu.id }值为JS123,但浏览器提示ReferenceError: JS123 is not defined  ,当把函数体内加上‘ ’ 两个单引号即可! javascript中函数字
相关文章
相关标签/搜索