<div class="right">
</div>
$('.list-group a:not(:first)').eq(1).on('click',function(){
$('.right').html(`
<%- include('./right_caixi.ejs')%>
`);//这个是right_caixi.ejs 模板(通过include引入)
<div class="container" id='contain'>
<table class="table table-bordered">
<thead>
<tr>
<th>序号</th>
<th>菜系编号</th>
<th>菜系名称</th>
<th>菜系操作</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<a class="btn addCaixi btn-primary" role="button" href='/addCaixi' >添加菜系</a>
</div>
alert(this.innerHTML)
})Web开发学习资料推荐
jquery attr prop 区别
配置chrome支持本地(file协议)ajax请求