angular.js - 求问,angular如何实现编辑内容没有点击保存的情况下,返回仍然可以看到自己编辑的内容?
大家讲道理
大家讲道理 2017-05-15 17:05:57
0
2
522

求问,angular如何实现编辑内容没有点击保存的情况下,返回仍然可以看到自己编辑的内容?

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(2)
淡淡烟草味

Listen to the input event, save the entered content to localstorage, and load the content in localStroage when loading the page.

滿天的星座

You can tie the ng-model of input to the data model of rootscope, so that the data can be retained when the front-end virtual router switches pages.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!