1、项目实现效果:
具体实现(if标签)
xml部分:
<if test="content!=null and content!=''">
and content like concat('%',#{content},'%')
</if>
<if test="content!=null and content!=''">
and content like concat('%',#{content},'%')
</if>
js部分:
$('#searchnote').on('click',function(){
initTable();
})