jquery easy UI 的hello版

<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>Tree Node Icons - jQuery EasyUI Demo</title>
	<link rel="stylesheet" type="text/css" href="easyui.css">
	<link rel="stylesheet" type="text/css" href="icon.css">
	<script type="text/javascript" src="jquery.min.js"></script>
	<script type="text/javascript" src="jquery.easyui.min.js"></script>
</head>
<body>
	
<div id =  "box" title="js generate dialog" style="width:400px;height:200px;">

</div>


<div class="easyui-dialog" title="class generate dialog" style="width:500px;height:500px">

</div>


<script >
$(function(){
	$("#box").dialog();
});
</script>

</body>
</html>

生成dialog的方式有两种:第一种是通过js生成 (这样可以让js和html分离) 第二种是通过class的属性值就可以了。

jQuery easy ui 的学习视频地址:http://edu.51cto.com/lesson/id-24494.html 

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。