easyui老报缺少对象
legu1 2015-05-06 01:35:22 这是我整个页面的代码,老报缺少对象,在using(....)这一行,是说Using不能这么使用吗?
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>easyui test</title>
@*<script type="text/javascript" src="../../Scripts/jquery-1.7.1.min.js"></script>*@
<script type="text/javascript" src="../jquery-easyui-1.3.6/jquery.min.js"></script>
<script type="text/javascript" src="../jquery-easyui-1.3.6/easyloader.js"></script>
<script type="text/javascript" src="../jquery-easyui-1.3.6/jquery.easyui.min.js"></script>
</head>
<body>
<h1>EasyLoader</h1>
<a href="#" class="easyui-linkbutton" onclick="load1()">Load Calendar</a>
<a href="#" class="easyui-linkbutton" onclick="load2()">Load Dialog</a>
<div id="cc"></div>
<div id="dd"></div>
</body>
<script type="text/javascript">
function load1() {
using('calendar',function(){
$('#cc').calendar({
width: 180,
height: 180
});
});
}
function load2() {
using(['dialog', 'messager'],function(){
$('#dd').dialog({
title: 'Dialog',
width: 300,
height: 200
});
$.messager.show({
title: 'info',
msg: 'dialog created'
});
});
}
</script>
</html>