1 Star 0 Fork 120

恐怖如斯方大神/jqadmin

forked from jQ酷/jqadmin 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
article.html 4.11 KB
一键复制 编辑 原始数据 按行查看 历史
paco 提交于 2017-03-23 21:00 . 下拉框添加异步事件
<!--#include file="common/header.html"-->
<body>
<div class="container-fluid larry-wrapper">
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-12">
<!--头部搜索-->
<section class="panel panel-padding">
<form class="layui-form" action="/php/data.php">
<div class="layui-form">
<div class="layui-inline">
<select name="city" lay-verify="required" lay-filter="ajax" data-params='{"url": "/php/test.php","data":"id=1&name=ni&va=23","confirm":"true"}'>
<option value="0">请选择分类</option>
<option value="010">北京</option>
<option value="021">上海</option>
<option value="0571">杭州</option>
</select>
</div>
<div class="layui-inline">
<div class="layui-input-inline">
<input class="layui-input start-date" name="start_date" placeholder="开始日">
</div>
<div class="layui-input-inline">
<input class="layui-input end-date" name="end_date" placeholder="截止日">
</div>
</div>
<div class="layui-inline">
<div class="layui-input-inline">
<input class="layui-input" name="keyword" placeholder="关键字">
</div>
</div>
<div class="layui-inline">
<button lay-submit class="layui-btn" lay-filter="search">查找</button>
</div>
</div>
</form>
</section>
<!--列表-->
<section class="panel panel-padding">
<div class="group-button">
<button class="layui-btn layui-btn-small layui-btn-danger ajax-all" data-name="checkbox" data-params='{"url": "/php/test.php","data":"id=1&name=ni&va=23","confirm":"true"}'>
<i class="iconfont">&#xe626;</i> 删除
</button>
<button class="layui-btn layui-btn-small layui-btn-normal ajax-all" data-name="checkbox" data-params='{"url": "/php/test.php","data":"id=1&name=hao","confirm":"true"}'>
<i class="iconfont">&#xe60c;</i> 推荐
</button>
<button class="layui-btn layui-btn-small layui-btn-normal ajax-all" data-name="checkbox" data-params='{"url": "/php/test.php","data":"id=1&name=hao&va=23"}'>
<i class="iconfont">&#xe603;</i> 置顶
</button>
<button class="layui-btn layui-btn-small layui-btn-normal ajax-all" data-name="checkbox" data-params='{"url": "/php/test.php","data":"id=1&name=hao&va=23"}'>
<i class="layui-icon">&#x1005;</i> 审核
</button>
<button class="layui-btn layui-btn-small modal-iframe" data-params='{"content": "article-add.html", "title": "添加文章","full":"true"}'>
<i class="iconfont">&#xe649;</i> 添加
</button>
</div>
<div id="list" class="layui-form"></div>
<div class="text-right" id="page"></div>
</section>
</div>
</div>
</div>
</body>
<!--#include file="tpl/article.html"-->
<script src="js/layui/layui.js"></script>
<!--#include file="common/version.html"-->
<script>
layui.use('list');
function test(ret, options, $) {
console.log($);
alert("这是自定义的ajax返回方法,可以用$哦");
}
</script>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
HTML
1
https://gitee.com/lengzixuan/jqadmin.git
git@gitee.com:lengzixuan/jqadmin.git
lengzixuan
jqadmin
jqadmin
master

搜索帮助