我想做这个var x=$(this).attr('id'); var y = x+1; 其中x是整数但是我得到的值是x1如果x = 15,我怎么得到16?谢谢吉恩 最佳答案 var y = parseInt(x) + 1; 应该可以。