360浏览器Uncaught TypeError: object is not a function问题

刚刚360浏览器提示 Uncaught TypeError: object is not a function,找了半天发现问题是我有一个按钮,id和方法重复了,所以提示这个。

<input type="text"  placeholder="分配积分" id ="scores" name="scores">
<a class="btn default btn-xs purple" data-toggle="modal" href="#divideScore"  onclick="scores('${base}/score/edit_allocation_points.jhtml');">分配</a>
onclick的scores()这个方法与input的name 名字重复这样写会导致错误。
posted @ 2015-07-15 15:05  #料  阅读(1462)  评论(0编辑  收藏  举报