var left=document.body.scrollTop;// left是number类型,所以没有substr方法第二个问题是:document.body.scrollTop+50数字加数字没问题