JqueryEasyUI combotree不显示 本帖最后由 apollokk 于 2012-05-11 10:12:11 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 使用的都是官方自带的文件,整个目录都是全的,没有改动过的直接在资源管理器双击打开就可以的源码如下:<!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>ComboTree - jQuery EasyUI Demo</title> <link rel="stylesheet" type="text/css" href="../themes/default/easyui.css"> <link rel="stylesheet" type="text/css" href="../themes/icon.css"> <link rel="stylesheet" type="text/css" href="demo.css"> <script type="text/javascript" src="../jquery-1.7.2.min.js"></script> <script type="text/javascript" src="../jquery.easyui.min.js"></script> <script> function reload(){ $('#cc').combotree('reload'); } function setValue(){ $('#cc').combotree('setValue', 2); } function getValue(){ var val = $('#cc').combotree('getValue'); alert(val); } function disable(){ $('#cc').combotree('disable'); } function enable(){ $('#cc').combotree('enable'); } </script></head><body> <h2>ComboTree</h2> <div class="demo-info"> <div class="demo-tip icon-tip"></div> <div>Click the right arrow button to show the tree.</div> </div> <div style="margin:10px 0;"> <a href="#" class="easyui-linkbutton" onclick="reload()">Reload</a> <a href="#" class="easyui-linkbutton" onclick="setValue()">SetValue</a> <a href="#" class="easyui-linkbutton" onclick="getValue()">GetValue</a> <a href="#" class="easyui-linkbutton" onclick="disable()">Disable</a> <a href="#" class="easyui-linkbutton" onclick="enable()">Enable</a> </div> <p>Single Select</p> <input id="cc" class="easyui-combotree" url="tree_data.json" value="2" required="true" style="width:200px;"> <p>Multiple Select</p> <select class="easyui-combotree" name="language" url="tree_data.json" multiple="true" cascadeCheck="false" style="width:200px;"></select></body></html>文件夹结构: Jquery筛选出数据,将不合适的数据隐藏 如何把整个页面中的所有元素放入一个动态创建的<div>或<span>中?????????????? debugtoolbar 5.11 能设置断点,或者修改Javascript代码不. 请问:如何从一个包含年月日的日期字符串中分别取出年、月、日,这样写哪错了? js计算出来的值,如何在table中显示出来 谷歌浏览器插件的问题 js checkbox replace 奇怪的下拉列表,innerHTML怎么不好用? 怎么在打开子窗口后 父窗口自动关闭?? 怎样实现在一个电脑上同一个网页不能同时打开多次 用哪个函数能得到随机数值? 请教下3个小问题
使用的都是官方自带的文件,整个目录都是全的,没有改动过的
直接在资源管理器双击打开就可以的源码如下:<!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>ComboTree - jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css" href="../themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../themes/icon.css">
<link rel="stylesheet" type="text/css" href="demo.css">
<script type="text/javascript" src="../jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="../jquery.easyui.min.js"></script>
<script>
function reload(){
$('#cc').combotree('reload');
}
function setValue(){
$('#cc').combotree('setValue', 2);
}
function getValue(){
var val = $('#cc').combotree('getValue');
alert(val);
}
function disable(){
$('#cc').combotree('disable');
}
function enable(){
$('#cc').combotree('enable');
}
</script>
</head>
<body>
<h2>ComboTree</h2>
<div class="demo-info">
<div class="demo-tip icon-tip"></div>
<div>Click the right arrow button to show the tree.</div>
</div>
<div style="margin:10px 0;">
<a href="#" class="easyui-linkbutton" onclick="reload()">Reload</a>
<a href="#" class="easyui-linkbutton" onclick="setValue()">SetValue</a>
<a href="#" class="easyui-linkbutton" onclick="getValue()">GetValue</a>
<a href="#" class="easyui-linkbutton" onclick="disable()">Disable</a>
<a href="#" class="easyui-linkbutton" onclick="enable()">Enable</a>
</div>
<p>Single Select</p>
<input id="cc" class="easyui-combotree" url="tree_data.json" value="2" required="true" style="width:200px;">
<p>Multiple Select</p>
<select class="easyui-combotree" name="language" url="tree_data.json" multiple="true" cascadeCheck="false" style="width:200px;"></select>
</body>
</html>文件夹结构: