easyui老报缺少对象

legu1 legu1 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
这是我整个页面的代码,老报缺少对象,在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>

...全文

相关推荐

评论 4
收藏 已收藏
分享
返回顶部
legu1
JavaScript 87,983 成员 224,681 内容