将某字段做本地存储(缓存)eg:项目字段

存储字段

eg:

<script type="text/javascript">
$('#option_btn').change(function () {
project_id = $('#option_btn').val();
var project_ids = $('#option_btn').val();
localStorage.setItem('project_id', project_ids)
$('#table').bootstrapTable('refresh');
});
<script>
-------------------------------------
取出字段信息
<script type="text/javascript">
localStorage.getItem('project_id')
<script>
 
上一篇:C#学习笔记_1


下一篇:Excel筆記~是繁體哦