<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<div id="one" pox="04" style="width: 200px;height: 100px;background-color:pink;"></div>
<input type="text">
<script src="https://bbs.csdn.net/topics/static/js/tool/jquery/jquery.js"></script>
<script>
$("#one").on('click',function (){
let pox= this.attributes[1].value;
$('input').val(pox
[code=javascript][/code])
})
</script>
{#怎么使得input的值點一次就把div的屬性值加一次,比如第一次是04,第二次就是0404,點第三次就040404#}
</body>
</html>
轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/268187.html
標籤:JavaScript
上一篇:迫切需要解決:有啥好辦法替換瀏覽器的flashplayer插件?
下一篇:大佬救命

