ThinkPhp5 delete方法ajax删除数据资源路由链接写法
HTML
<html>
<head>
<title>文章管理</title>
<script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js">
</script>
</head>
<body>
<table border="1px solid #000" cellspacing="0" cellpadding="0" width="100%">
<thead>
<tr>
<th>ID</th>
<th>标题</th>
<th>操作</th>
</tr>
</thead>
<tbody>
{volist name="data" id="vo"}
<tr>
<td>{$vo.id}</td>
<td>{$vo.title}</td>
<td><a onclick="doDel({$vo.id});" href="javascript:void(0);" >删除</a></td>
</tr>