第一个案例:
<input id="1" type="button" value="1">
<input id="2" type="button" value="2" onclick="add1(1)">
<script>
function add1(str) {
var obj;
obj=document.getElementById(str);
function add(e) {
e.onclick = function () {
alert("woshishei")
<input id="1" type="button" value="1">
<input id="2" type="button" value="2" onclick="add1(1)">
<script>
function add1(str) {
var obj;
obj=document.getElementById(str);
function add(e) {
e.onclick = function () {
alert("woshishei")










本站有权保留或删除有争议评论。 参与本评论即表明您已经阅读并接受上述条款。