将某字段做本地存储(缓存)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>
标签:缓存,某字,val,eg,project,btn,id,option 来源: https://www.cnblogs.com/meili970202/p/14851930.html