Javascript 中数字变量减法就可以直接减 数字的加法要先把数字转换成Int类型 或者Float类型才可以。 代码如下: currentPage = parseInt(currentPage) + parseInt(1);