<div>
<button id="btn" onclick="btn()">我是button1</button>
</div>
<script>
function btn(){
document.getElementById("btn").innerHTML = "btn文字改变了"
}
</script>
layui修改按钮文字
最新推荐文章于 2024-06-19 16:42:32 发布
<div>
<button id="btn" onclick="btn()">我是button1</button>
</div>
<script>
function btn(){
document.getElementById("btn").innerHTML = "btn文字改变了"
}
</script>