You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

33 lines
899 B

<%--
Created by IntelliJ IDEA.
User: 10295
Date: 2018/4/15
Time: 23:01
To change this template use File | Settings | File Templates.
--%>
<!DOCTYPE html>
<html lang="en">
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <!--输出,条件,迭代标签库-->
<%@ page pageEncoding="utf-8" %>
<head>
<c:import url="head.jsp"/>
<script id="demo" type="text/x-jquery-tmpl">
<a href="#" class="list-group-item list-group-item-action list-group-item-{{= type}}">A simple {{= type}} list group item</a>
</script>
<script type="text/javascript">
$(function () {
$("#demo").tmpl([{type: 'primary'}, {type: 'secondary'}, {type: 'success'}, {type: 'danger'}, {type: 'warning'}, {type: 'info'}, {type: 'light'}, {type: 'dark'}]).appendTo('#div_demo');
});
</script>
</head>
<body>
<div id="div_demo">
</div>
</body>
</html>