<img src="../../img/1.jpg" height="300" width="500" /> <input type="button" id="name" value="点赞(0)"/> <script> var a = 0; document.getElementById('name').οnclick=function(){ this.value="点赞("+(++a)+")"; } </script>
javascript中实现点赞
于 2022-09-23 18:32:11 首次发布