一个页面中有多个控件需要调用某函数,并且要给该函数传递值。有没有办法在被调用函数中通过某种方式,在不传递参数的情况下,得到调用者的引用,进而取得对应控件的值. 一般的写法是 <script> function test(object) { alert(object.value); } </script> <input type="button" name="one" value="one" onclick="test(this)"> <input type="button" name="tow" value="tow" onclick="test(th ...
qqwjz
搜索本博客
博客分类
最近加入圈子
最新评论