控件包含代码块(即 <% ... %>),因此无法修改控件集合。

原因分析:在head里写的js代码中包含了<%=...%>代码

解决:把js的代码放到body中。。。

原文地址:https://www.cnblogs.com/xielianghui/p/7715737.html