首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

问个很简单的有关问题,可是小弟我还是不会

2012-02-28 
问个很简单的问题,可是我还是不会?document.all(txt_CurrentPage).value document.all(txt_CurrentPag

问个很简单的问题,可是我还是不会?
document.all("txt_CurrentPage").value =document.all("txt_CurrentPage").value + 1;
如果原来txt_CurrentPage的值为1,就成了11了.我要得到的是2

[解决办法]
document.all("txt_CurrentPage").value =parseInt(document.all("txt_CurrentPage").value) + 1;

热点排行