读书人

为什么ID不等于11,而是9呢?解决方案

发布时间: 2012-02-26 20:19:44 作者: rapoo

为什么ID不等于11,而是9呢?
为什么ID不等于11,而是9呢?

JScript code
<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>奇怪</title></head><Script Language=javascript><!--function btEditUser_onsub(id){    var MsgMsg=window.confirm(id);}//--></Script>      <table width="100%" cellspacing="0" cellpadding="0" border="0" height="275">    <tr>      <td valign="bottom">        <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#f7f7f7">          <tr>             <td bgcolor="#999999" height="1"></td>          </tr>          <tr>             <td bgcolor="#FFFFFF" height="1"></td>          </tr>          <tr>             <td align="center" height="53" bgcolor="#DEDBD6">                            <input type="button" value=" 修 改 " class="button" name="btEditUser" onClick="btEditUser_onsub(00000011)">            </td>          </tr>        </table>      </td>  </tr></table></form></body></html>


[解决办法]
因为00000011在转化成位数字的时候被认为是8进制数了,所以011转化成10进制就是9

读书人网 >Java Web开发

热点推荐