日期:2014-05-16 浏览次数:20318 次
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title> New Document </title> <meta name="Generator" content="EditPlus"> <meta name="Author" content=""> <meta name="Keywords" content=""> <meta name="Description" content=""> <script> function _getObj(n){ eval("var obj_name = document.all.num" + n); alert(obj_name + ' name'); eval("var obj_id = document.getElementById('num" + n+"')"); alert(obj_id + ' id'); } window.onload = function () { _getObj(444); } </script> </head> <body> <input type="hidden" name="num444" id="num444" value="aaaa"> </body> </html>