-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.html
38 lines (38 loc) · 1.42 KB
/
demo.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Labels Pannel</title>
<script type="text/javascript" src="http://cdn.bootcss.com/jquery/1.8.3/jquery.js"></script>
<script type="text/javascript" src="http://code.taobao.org/svn/labelspannel/trunk/label.mini.js"></script>
<script type="text/javascript">
var label = new Labels("content",'[ {"key" : "Template0","value" : "模版0"}, '+
'{"key" : "Template1","value" : "模版1"}, '+
'{"key" : "Template2","value" : "模版2"}, '+
'{"key" : "Template3","value" : "模版3"}, '+
'{"key" : "Template4","value" : "模版4"}, '+
'{"key" : "Template5","value" : "模版5"}, '+
'{"key" : "Template6","value" : "模版6"}, '+
'{"key" : "Template7","value" : "模版7"}, '+
'{"key" : "Template8","value" : "模版8"}, '+
'{"key" : "Template9","value" : "模版9"}, '+
'{"key" : "Template10","value" : "模版10"}, '+
'{"key" : "Template11","value" : "模版11"}, '+
'{"key" : "Template12","value" : "模版12"}, '+
'{"key" : "Template13","value" : "模版13"}, '+
'{"key" : "Template14","value" : "模版14"}, '+
'{"key" : "Template15","value" : "模版15"}, '+
'{"key" : "Template16","value" : "模版16"}]');
$(function(){
label.init();
});
</script>
</head>
<body>
<div class="labels" style="width:400px;height:100px;">
</div>
<div>
模板内容:<br><textarea id="content" rows="5" cols="50"></textarea>
</div>
</body>
</html>