解决报错:Property or method "get_carts" is not defined on the instance but referenced during render。
原因一:浏览器缓存的js文件未更新。 解决办法:清除浏览器缓存,再刷新网页。