-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathexample.html
More file actions
30 lines (29 loc) · 772 Bytes
/
Copy pathexample.html
File metadata and controls
30 lines (29 loc) · 772 Bytes
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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title></title>
</head>
<body>
<script type="text/javascript" src="./index.js"></script>
<script type="text/javascript">
//全局加载
var user = ddAvatar.getAvatar("jambinliang","jambinliang");
document.write(JSON.stringify(user));
//cmd模块
/*seajs.config({
base: "./",
alias: {
"ddAvatar": "./index.js"
}
})
seajs.use("ddAvatar", function (ddAvatar) {
console.log(ddAvatar);
});*/
//amd模块
/*require(["./index"], function(ddAvatar) {
console.log(ddAvatar);
});*/
</script>
</body>
</html>