最近在項目中有個頁面中一段代碼如下:<ul><li><a href='......' >xxxxxxxx<a> </li><asp:HiddenField ID="hidInterrupt" Value='<%# Eval("finishstate")%>' runat="server" /></ul>然后再腳本中,點擊li的clikc事件中這樣寫的:var interrupt=$(this).next().val();結(jié)果在IE 7 和IE 6中interrupt能夠正確找到hidInterrupt中的值,但是在IE8 卻找不到。我講頁面代碼改成:<ul><li><a href='......' >xxxxxxxx<a> <asp:HiddenField ID="hidInterrupt" Value='<%# Eval("finishstate")%>' runat="server" /></li></ul>結(jié)果 interrupt 在ie6、7、8中都能找的到hidInterrupt中的值。
詢問IE8下關(guān)于HiddenField布局的一些問題
慕碼人2483693
2018-08-10 09:06:36