1234567891011121314151617181920212223242526272829303132333435363738394041 |
- layui.use([ 'laypage', 'layer', 'table', 'element','form','upload'], function(){
- var laypage = layui.laypage
- ,$ = layui.jquery
- ,layer = layui.layer
- ,table = layui.table
- ,form = layui.form
- var $ = layui.$, active = {
- mobile: function(){
- layer.msg('数据提交中,请稍候',{icon: 16,time:false,shade:0.8});
- $.post('/cache/staticcacheclear',{'type':1},function (data) {
- layer.msg(data.msg);
- })
- return false;
- },
- pc:function(){
- layer.msg('数据提交中,请稍候',{icon: 16,time:false,shade:0.8});
- $.post('/cache/staticcacheclear',{'type':2},function (data) {
- layer.msg(data.msg);
- })
- return false;
- },
- backend:function(){
- layer.msg('数据提交中,请稍候',{icon: 16,time:false,shade:0.8});
- $.post('/cache/staticcacheclear',{'type':3},function (data) {
- layer.msg(data.msg);
- })
- return false;
- },
- };
- $('.demoTable .layui-btn').on('click', function(){
- var type = $(this).data('type');
- active[type] ? active[type].call(this) : '';
- });
- });
|