From 4aff159ee64dcdb773efbe9aa8a7b1f7862b338e Mon Sep 17 00:00:00 2001 From: zhao <changlin_zhao@qq.com> Date: Mon, 17 Feb 2020 20:27:12 +0800 Subject: [PATCH] tags delete --- view/index/article/add.html | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/view/index/article/add.html b/view/index/article/add.html index 0ac4c69..deb8889 100644 --- a/view/index/article/add.html +++ b/view/index/article/add.html @@ -87,7 +87,6 @@ </div> <div class="layui-form-item"> <div class="layui-btn-container"> - <!--button type="button" class="layui-btn">标签</button--> </div> </div> @@ -127,11 +126,16 @@ </div> {/block} - - {block name="script"} - <script> + +//删除tag + $(document).ready(function(){ + $('.layui-btn-container').on('click','button',function(){ + $(this).remove(); + }); + }); + layui.use('form', function(){ var form = layui.form;