vue前端使用localStorage实现筛选项缓存
存入localStorange
data() {
return {
//表单内容
form:{
name: 'Nicholas',
age: '23',
sex: 'boy',
hobby: ['ball','game','movie'],
color:['red','balck','green'],
course:['math','English','Chinese']
}
};
},
methods: {
//写缓存
原创
2020-06-14 15:46:22 ·
683 阅读 ·
0 评论