添加seajs用例

pull/7/head
xiaowu 2014-11-01 12:53:06 +08:00
parent 66a96f84cc
commit 58993471fb
2 changed files with 26 additions and 0 deletions

19
test/demo2.html Normal file
View File

@ -0,0 +1,19 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Demo2 for Seajs</title>
</head>
<body>
<div style="height:300px;"></div>
<input type="text" id="J-xl">
<script type="text/javascript" src="//libs.useso.com/js/seajs/2.2.1/sea.js"></script>
<script type="text/javascript" src="../laydate.dev.js"></script>
<script type="text/javascript">
seajs.use('./demo2');
</script>
</body>
</html>

7
test/demo2.js Normal file
View File

@ -0,0 +1,7 @@
define(function(){
'use strict';
laydate({
elem: '#J-xl'
});
});