-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.html
executable file
·54 lines (43 loc) · 2.16 KB
/
test.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!DOCTYPE HTML>
<head>
<script type="text/javascript" src="jquery-1.6.4.min.js" charset="utf-8"> </script>
<script type="text/javascript" src="jquery.tmpl.js" charset="utf-8"> </script>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>test</title>
<style type="text/css" media="screen">
</style>
</head>
<html>
<body>
<script id="movieTemplate" type="text/x-jquery-tmpl">
<div class ="tweets" id= "tweets_wrap_${id}" ?>
<div class="tweets_content_box">
<div class="tweets_user_icon">
<img height="48" width="48" src= ${icon} ></img>
</div>
<div class="tweets_content">
<div class="tweets_row">
<span class="tweets_username"> ${username} </span>
<span class="tweets_fullname"> ${fullname} </span>
</div>
<div class="tweets_row">
${twitte} <br>
</div>
<div class="tweets_row tweets_follow_row" >
</div>
</div>
</div>
</div>
</script>
<script type="text/javascript">
var movies = [
{ Name: "The Red Violin", ReleaseYear: "1998" },
{ Name: "Eyes Wide Shut", ReleaseYear: "1999" },
{ Name: "The Inheritance", ReleaseYear: "1976" }
];
var tweets = [{"0":"2","id":"2","1":"be happy, be fun, be happiness","twitte":"be happy, be fun, be happiness","2":"1","user_id":"1","3":"wliment","username":"wliment","4":"\u90d1\u6d9b","fullname":"\u90d1\u6d9b","5":"php_twitter_photo\/icon\/1.jpg","icon":"php_twitter_photo\/icon\/1.jpg"},{"0":"6","id":"6","1":"\u5988\u5988\u4f1a\u5e26\u56de\u6765\u597d\u5403\u7684\u5427!","twitte":"\u5988\u5988\u4f1a\u5e26\u56de\u6765\u597d\u5403\u7684\u5427!","2":"3","user_id":"3","3":"zheng","username":"zheng","4":"\u5c0f\u72d0\u72f8","fullname":"\u5c0f\u72d0\u72f8","5":"php_twitter_photo\/icon\/3.jpeg","icon":"php_twitter_photo\/icon\/3.jpeg"}]
$( "#movieTemplate" ).tmpl( tweets )
.appendTo( "#movieList" );
</script>
</body>
</html>