wangze1991 / lhgdialog

Automatically exported from code.google.com/p/lhgdialog
0 stars 0 forks source link

一个很奇怪的问题 #9

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
  <html><head><script type="text/javascript" src="jquery-1.7.2.min.js"></script>
    <script type="text/javascript" src="lhgdialog.min.js?skin=default"></script>
</head>
<body>
     <input id="nodeName" name="name1" type="text" />
</body>
</html>

这样在chrome下会报错。
Uncaught TypeError: Object #<HTMLInputElement> has no method 'toLowerCase' 

Original issue reported on code.google.com by wei...@gmail.com on 21 Oct 2012 at 1:48

GoogleCodeExporter commented 8 years ago
页面元素最好不用关键词 估计nodeName就是。可以换个试试

Original comment by javaDB....@gmail.com on 25 Jul 2013 at 9:14

GoogleCodeExporter commented 8 years ago
感谢一楼的回答,解决了我棘手的问题,就是由于id设置为了
nodeName导致的

Original comment by stevenso...@gmail.com on 9 Oct 2013 at 3:34

GoogleCodeExporter commented 8 years ago
感谢#1,确实是这个导致的

Original comment by jmq2...@gmail.com on 13 Nov 2013 at 7:42