
easyui
u010082526
这个作者很懒,什么都没留下…
展开
-
easyui的datagrid显示或隐藏列
1.根据下拉框选择要显示的列 html: javascript: //因子被选中时 function factorOnSelect(nv, ov) { if (data != "" && data != null && data != undefined) { var all = ["SO2", "NO2", "原创 2016-07-27 15:48:30 · 3517 阅读 · 0 评论 -
excel数据批量导入
1. html <form id="form_search" action="@Url.Action("UpLoadFile")" enctype="multipart/form-data" method="post"> <td>原创 2017-01-13 14:58:36 · 475 阅读 · 0 评论 -
切换tab页
//切换Tab页 $('#tt').tabs({ border:false, onSelect:function(title){ alert(title+' is selected'); } });原创 2017-02-24 14:33:16 · 415 阅读 · 0 评论 -
label文字居中
height: height,//"20px" "line-height": height, autosize:true,"text-align": 'center',原创 2017-04-11 14:36:34 · 12665 阅读 · 0 评论 -
combobox无法显示选中的数据,都是undefined
$('#firstfactor').combobox({ url: '@Url.Action("GetMultiAirFactor_Day_New", "UtilManage")' });没有定义 valueField和textfield,修改如下$('#firstfactor').combobox({原创 2017-05-05 10:07:09 · 2756 阅读 · 0 评论 -
radio切换,点击方法onclick
首要污染物污染因子onclick="firstfactorChange()" 方法记得加()原创 2017-05-05 10:13:37 · 4859 阅读 · 0 评论 -
onClickRow
onClickRow: function (rowIndex, rowData) { dgonClickRow(rowData.oldCityCode,rowData.CITY) } //数据表格单击事件 function dgonClickRow(citycode, cityn原创 2017-07-14 16:21:38 · 3395 阅读 · 0 评论 -
Cannot read property 'getAttribute' of null
//data: para,//重新传递参数data: { city: citycode, startTime: STime, endTime: ETime, Status: Status },//para,报错位置定位在myChart = ec.init(document.getElementById(container));//'main'改成container myCh转载 2018-01-10 15:58:33 · 16382 阅读 · 0 评论 -
$.fn.validatebox.methods[_44f] is not a function
$.fn.validatebox.methods[_44f] is not a functionvar ETime = $("#endTime").combobox('gimeValue');写错了var ETime = $("#endTime").combobox('getValue');原创 2018-01-10 13:48:25 · 4050 阅读 · 0 评论 -
easyui表格列排序(升序/降序)
//sortName: 'CAQI', remoteSort:false, sortOrder: 'asc',每一列都加上sortable: true, sorter: function (a, b) { return (a > b ? 1 : -1) } ...原创 2018-08-10 13:50:52 · 4194 阅读 · 0 评论 -
下拉框combobox
【1】后台传查询出数据,返回list.tojson[1]<th>&nbsp;&nbsp;开始时间(年):</th> <td> <input id="startTime" name="startTime" class="easyui-co原创 2019-02-18 09:44:37 · 351 阅读 · 0 评论 -
ajaxSubmit--->undefined is not a function
引入依赖脚本原创 2017-01-13 14:30:11 · 610 阅读 · 0 评论 -
下拉框级联(二)
html 范围: 地市/区域 省 京津冀 名称: js $(function () {原创 2016-12-27 09:39:56 · 360 阅读 · 0 评论 -
下拉框级联
一、功能描述:下拉框“模型”有两个下拉项:CMAQ、Wrf-Chem 选中“Wrf-Chem”,“区域”下拉框选中“吕梁及周边”并置灰,不可选;选中“CMAQ”,“区域”变可选。1>模型下拉框 模型:原创 2016-08-15 16:04:20 · 432 阅读 · 0 评论 -
Cannot read property 'nodeType' of undefined
1.页面一直报Cannot read property 'nodeType' of undefined获取id为“StationMultiselect”的值的时候,出了问题 stations = $("#station").combotree("getText").split(',');id没有写对造成的正解:stations = $("#StationMu原创 2016-07-06 14:32:03 · 10268 阅读 · 0 评论 -
datagrid
1.单元格点击事件onClickCell onClickCell: function (rowIndex, field, value) { alert(1); },原创 2016-07-19 09:52:03 · 295 阅读 · 0 评论 -
easyui date插件
easyui-datetimeboxeasyui-datebox原创 2016-09-05 10:19:42 · 324 阅读 · 0 评论 -
datagrid 行点击事件
onClickRow: function (index, row) { OpenData(row.STATIONCODE,row.MONIDATE); }原创 2016-10-24 14:15:46 · 6613 阅读 · 1 评论 -
easyui的combobox、combotree
1.combotree多选 class:easyui-combotree , multiple多选 方法 function GetSection() { $.post('@Url.Action("GetSection")', function (data) { $("#section").combotree原创 2016-11-16 17:17:14 · 726 阅读 · 0 评论 -
echart2.0 Vs echarts3.0
1.echart2.0的用法 1>路径配置 // 路径配置 require.config({ paths: { echarts: '@Url.Content("~/Areas/EnvironmentalMonitor/Scripts/ECharts")' } }); 2>绑定图表原创 2016-11-18 11:12:54 · 3062 阅读 · 0 评论 -
echarts固定柱子宽度(barWidth)
series: [ { name: '', yAxisIndex: 0, type: 'bar', barWidth: 15,//固定柱子宽度 data: Ydata },原创 2016-11-18 15:18:41 · 37697 阅读 · 1 评论 -
combobox的值从主页面传递到子页面
1.主页面传递参数 url: '@Url.Action("WaterLoad")' + '?year=' + year + '&fanwei=' + fanwei,2.控制器里接收参数 public ActionResult WaterLoad(int year,string fanwei) { ViewBag.yea原创 2016-11-23 17:31:52 · 546 阅读 · 0 评论 -
向后台发送请求
1. ajax请求 $.ajax({ type: "post", url: "ChartData", dataType: "json", data: { section: section, index: index },//,year: year suc原创 2016-11-24 09:56:57 · 704 阅读 · 0 评论 -
查询按钮
查询//查询按钮 $("#btn").click(function () { loadtable(); });原创 2016-11-24 11:11:14 · 1295 阅读 · 0 评论 -
easyui动态设置表头th
<table id="dg" class="easyui-datagrid" data-options="fitColumns: true,"> <thead> <tr> ...原创 2019-03-05 15:54:18 · 2049 阅读 · 0 评论