easyui 小知识
2015-07-17 17:02
567 查看
默认为今天
$(document).ready(function () {
$(function () {
var curr_time = new Date();
var strDate = curr_time.getFullYear() + "-";
strDate += curr_time.getMonth() + 1 + "-";
strDate += curr_time.getDate() + "-";
strDate += curr_time.getHours() + ":";
strDate += curr_time.getMinutes() + ":";
strDate += curr_time.getSeconds();
$("#date").datebox("setValue", strDate);
});
});
<input id="date" class="easyui-datebox"></input>
combobox 禁止编辑
<input data-options="required:true" class="easyui-combobox" id="ObjectUser" name="ObjectUser"
data-options="url:'UserRecord/GetUser',valueField:'UserWorkNum',textField:'UserName',aable:false"></input>
按百分比 显示 body 必须有这个cssClass ,然后 datagrid 样式 使用 width: 100%; 就平铺了
var r = $("body").addClass("easyui-layout");
$(document).ready(function () {
$(function () {
var curr_time = new Date();
var strDate = curr_time.getFullYear() + "-";
strDate += curr_time.getMonth() + 1 + "-";
strDate += curr_time.getDate() + "-";
strDate += curr_time.getHours() + ":";
strDate += curr_time.getMinutes() + ":";
strDate += curr_time.getSeconds();
$("#date").datebox("setValue", strDate);
});
});
<input id="date" class="easyui-datebox"></input>
combobox 禁止编辑
<input data-options="required:true" class="easyui-combobox" id="ObjectUser" name="ObjectUser"
data-options="url:'UserRecord/GetUser',valueField:'UserWorkNum',textField:'UserName',aable:false"></input>
按百分比 显示 body 必须有这个cssClass ,然后 datagrid 样式 使用 width: 100%; 就平铺了
var r = $("body").addClass("easyui-layout");
相关文章推荐
- HDU 3530 Subsequence
- ios UIFont 字体大全
- 1252 - Twenty Questions
- UKEAK事件
- UI2_异步下载
- UI2_同步下载
- UIWindow
- UiAutomator
- No resource found that matches the given name (at 'drawab' with value '@drawable/你的资源').
- Alex 的 Hadoop 菜鸟教程: 第19课 华丽的控制台 HUE 安装以及使用教程
- UINavigationController小知识点(一)
- runOnUiThread
- Builder Pattern
- require './ex25' can't load such file
- iOS上怎样让按钮(UIbutton)文本左对齐展示
- ServletRequest接口召回总结
- ERROR 1366 (HY000): Incorrect string value: '\xE4\xB8\xAD\xE5\x9B\xBD' for column 'tname' at row 1
- 问题-[致命错误] Project1.dpr(1): Unit not found: 'System.pas' or binary equivalents (DCU,DPU)
- NameValueCollection类读取配置信息
- UITableView 分隔线的自定义方法(可自定义分隔线的颜色 粗细 与屏幕边缘的距离)