課程
/前端開發
/Vue.js
/vue.js入門基礎
為什么是undefined呢 直接在控制臺中傳一個type都能夠獲取到
2016-11-28
源自:vue.js入門基礎 2-3
正在回答
之前的localStorage有問題,新版參考這里
https://github.com/fishenal/Todos_Vuejs
用了vue的localstorage插件:
https://github.com/pinguinjkeke/vue-local-storage
之前這個undefined可能是那個|| '[]' 的問題,具體我沒看
用了老師上面提到的localstorage插件,終于解決了
能具體點么,相關代碼什么的
舉報
本門為vuejs入門教程,詳細的講解加實戰,可以幫你進入vuejs的大門
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2016-11-29
之前的localStorage有問題,新版參考這里
https://github.com/fishenal/Todos_Vuejs
用了vue的localstorage插件:
https://github.com/pinguinjkeke/vue-local-storage
之前這個undefined可能是那個|| '[]' 的問題,具體我沒看
2016-12-06
用了老師上面提到的localstorage插件,終于解決了
2016-11-28
能具體點么,相關代碼什么的