从后端取到一个long长整形的值,将其存至window.sessionStorage中,后面再取出时类型变成了字符串型,经试验,其他类型也会自动转为字符串型
解决:在getItem取出来后将其进行一下类型转换,如var id=Number(window.sessionStorage.getItem("currentPlanId"))
var id=Number(window.sessionStorage.getItem("currentPlanId"))