使用sessionStorage、localStorage存储数组与对象

版权声明: https://blog.csdn.net/qq_23521659/article/details/82881478

存:

sessionStorage.setItem("financialList",JSON.stringify($scope.financialList))
sessionStorage.setItem("financialFileSystem",$scope.financialFileSystem)

取:

$scope.detail=JSON.parse(sessionStorage.getItem("financialList"))
$scope.financialFileSystem=sessionStorage.getItem("financialFileSystem")

效果:

猜你喜欢

转载自blog.csdn.net/qq_23521659/article/details/82881478