-
Notifications
You must be signed in to change notification settings - Fork 1
/
example.html
37 lines (30 loc) · 999 Bytes
/
example.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
<!DOCTYPE html>
<html>
<head>
<title>Common js Example</title>
<script type="text/javascript" src="common.js"></script>
<script type="text/javascript">
console.log(Common.Math.add(12.3,123.2423));
console.log(Common.Math.sub(12.3,123.2423));
console.log(Common.Date.parse("2016-10-21"));
console.log(Common.Date.format(new Date(),"yyyy-MM-dd hh:mm"));
console.log(Common.Money.format("012233123.2132131"));
console.log(Common.Money.number("123,123.1"));
</script>
</head>
<body>
<pre>
<script type="text/javascript" src="common.js"></script>
<script type="text/javascript">
console.log(Common.Math.add(12.3,123.2423));
console.log(Common.Math.sub(12.3,123.2423));
console.log(Common.Date.parse("2016-10-21"));
console.log(Common.Date.format(new Date(),"yyyy-MM-dd hh:mm"));
console.log(Common.Money.format("012233123.2132131"));
console.log(Common.Money.number("123,123.1"));
</script>
// 请查看控制台
// look console
</pre>
</body>
</html>