作者:mobiledu2502861997 | 来源:互联网 | 2023-09-09 16:29
1.标签文件 list.tag 放在web-inf/tags/bpm目录下,如果没有新建
2.内容随意,id代表标签里必须有的属性
<%&#64; tag language&#61;"java" pageEncoding&#61;"UTF-8"%>
<%&#64; attribute name&#61;"id" type&#61;"java.lang.String" required&#61;"true" description&#61;"编号"%>
<button type&#61;"button" class&#61;"btn btn-default" id&#61;"ins">xxxxxxxxxxxxxxbutton>
<script type&#61;"text/Javascript">console.log("gggggggggg");
script>
3.在jsp中使用
<%&#64; page language&#61;"java" contentType&#61;"text/html; charset&#61;utf-8"pageEncoding&#61;"utf-8"%>
<%&#64; taglib prefix&#61;"bpm" tagdir&#61;"/WEB-INF/tags/bp" %>
<html>
<head>
<meta http-equiv&#61;"Content-Type" content&#61;"text/html; charset&#61;utf-8">
<title>测试title>
<script type&#61;"text/Javascript" src&#61;"scripts/jquery-1.12.0.min.js">script>
script>
head>
<body>
<div>
<bpm:listselect2 id&#61;"cc">bpm:listselect2>
div>
body>
4.要使用传进来的属性
$("#${id}Button").click(function(){
})