该代码使用了jquery,开始需要引入jquery包
html代码
<body> <div class="content"> <button class="getcode">点击获取</button> </div> </body>js实现代码
<script type="text/javascript"> window.onload=function () { $(".getcode").on('click',function () { var self = this
该代码使用了jquery,开始需要引入jquery包
html代码
<body> <div class="content"> <button class="getcode">点击获取</button> </div> </body>js实现代码
<script type="text/javascript"> window.onload=function () { $(".getcode").on('click',function () { var self = this