#跨页面传值 学习笔记总结
#这个3个例子
1、url的获取,字符串的截取操作
2、localStorage和sessionStorage的使用
3、原生cookie的封装,jquery.cookie.js插件的使用
#获取demo:
1、创建一个文件夹
2、cd 进入当前文件夹 。
window => 在文件夹空白处 按住 Shift键 + 鼠标右键 => 此处打开终端窗口 可快速进入当前文件夹
3、git init
4、git clone ...
#跨页面传值有三种方式
方法一:
1、通过URL传值
方法二:
1、使用h5的localStorage或者sessionStorage存储对象类型
方法三:
1、使用cookie保存
1、原生cookie
2、jQuerycookiejs插件
3、使用cookie可用来跨页面传值 - 状态保持