在host 下面追加 本地图片映射
<Context docBase="E:/upload" path="/images" />
textarea 多行文本域 禁止修改代码 :readonly="readonly"
input 输入框 禁止修改代码 :disabled="disabled" css样式禁止修改:<input style="ime-mode: disabled">
查看端口被占用:开始---->运行---->cmd,或者是window+R组合键,调出命令窗口
输入命令:netstat -ano,列出所有端口的情况
数据库修改表字段长度
alter table HR_NAMING_RULES_SUBLIST modify (字段名 varchar2(20))
alter table HR_NAMING_RULES modify (字段名 varchar2(20))
//注意:下面的代码是放在和iframe同一个页面中调用
$("#iframeId").load(function () {
var mainheight = $(this).contents().find("body").height() + 30;
$(this).height(mainheight);
});
//获取父级ifrname 并赋值
var a = 100;
var obj=window.parent.document.getElementById('objId') ;
obj.height(a);
方式2:
//注意:下面的代码是放在iframe引用的子页面中调用
$(window.parent.document).find("#iframeId").load(function () {
var main = $(window.parent.document).find("#iframeId");
var thisheight = $(document).height() + 30;
main.height(thisheight);
});
ModelMap 传参报406错误?
可以通过注解@RequestMapping 中的produces="text/html;charset=UTF-8"
//获取日期
var startDate = document.getElementById ("date");
alert(startDate.value);
//复选框全选 #checkDataForm ID 根据自己定义修改
function selectAll(chk) {
$("#checkDataForm > tbody > tr > td:first-child > input[type='checkbox']").each(function(i){
if($(this).attr("disabled") != "disabled")
{
$(this).prop({
checked : ($(chk).prop("checked") == true)
});
}
});
};
<td valign="top" > td 里面的内容靠顶部
$(document).ready(function(){
$("#tool").change(function(){
var tool = $('#tool option:selected').val();
if(tool == "2"){
$("#tr_1").css('display' ,'');
$("#tr_2").css('display' ,'');
$("#tr_3").css('display' ,'');
}else{
$("#tr_1").css('display' ,'none');
$("#tr_2").css('display' ,'none');
$("#tr_3").css('display' ,'none');
}
});
});
//获取url传递参数
function GetLocationParam(param){
var request = {
QueryString : function(val) {
var uri = window.location.search;
var re = new RegExp("" +val+ "=([^&?]*)", "ig");
return ((uri.match(re))?(decodeURI(uri.match(re)[0].substr(val.length+1))):'');
}
}
return request.QueryString(param);
}
var uid=GetLocationParam("id");//容器ID
var url=GetLocationParam("url");//返回地址
var jsUrl = GetLocationParam("jsUrl");//图表的JS架包路径
My97DatePicker/WdatePicker.js 日期插件
只显示时分秒
οnclick="WdatePicker({dateFmt:'HH:mm',quickSel:['%H-00-00','%H-15-00','%H-30-00','%H-45-00']})"
只显示年月日
onClick="WdatePicker({startDate:'${nowTime}'})"
js 比较日期大小
第一种方法:
function CompareDate(d1,d2)
{
return ((new Date(d1.replace(/-/g,"\/"))) > (new Date(d2.replace(/-/g,"\/"))));
}
var current_time = "2007-2-2 7:30";
var stop_time = "2007-1-31 8:30";
alert(CompareDate(current_time,stop_time));
第二种方法:
var curTime = new Date();
//2把字符串格式转换为日期类
var startTime = new Date(Date.parse(kc.begintime));
var endTime = new Date(Date.parse(kc.endtime));
//3进行比较
return (curTime>=startTime && curTime<=endTime);
<Context docBase="E:/upload" path="/images" />
textarea 多行文本域 禁止修改代码 :readonly="readonly"
input 输入框 禁止修改代码 :disabled="disabled" css样式禁止修改:<input style="ime-mode: disabled">
查看端口被占用:开始---->运行---->cmd,或者是window+R组合键,调出命令窗口
输入命令:netstat -ano,列出所有端口的情况
数据库修改表字段长度
alter table HR_NAMING_RULES_SUBLIST modify (字段名 varchar2(20))
alter table HR_NAMING_RULES modify (字段名 varchar2(20))
//注意:下面的代码是放在和iframe同一个页面中调用
$("#iframeId").load(function () {
var mainheight = $(this).contents().find("body").height() + 30;
$(this).height(mainheight);
});
//获取父级ifrname 并赋值
var a = 100;
var obj=window.parent.document.getElementById('objId') ;
obj.height(a);
方式2:
//注意:下面的代码是放在iframe引用的子页面中调用
$(window.parent.document).find("#iframeId").load(function () {
var main = $(window.parent.document).find("#iframeId");
var thisheight = $(document).height() + 30;
main.height(thisheight);
});
ModelMap 传参报406错误?
可以通过注解@RequestMapping 中的produces="text/html;charset=UTF-8"
//获取日期
var startDate = document.getElementById ("date");
alert(startDate.value);
//复选框全选 #checkDataForm ID 根据自己定义修改
function selectAll(chk) {
$("#checkDataForm > tbody > tr > td:first-child > input[type='checkbox']").each(function(i){
if($(this).attr("disabled") != "disabled")
{
$(this).prop({
checked : ($(chk).prop("checked") == true)
});
}
});
};
<td valign="top" > td 里面的内容靠顶部
$(document).ready(function(){
$("#tool").change(function(){
var tool = $('#tool option:selected').val();
if(tool == "2"){
$("#tr_1").css('display' ,'');
$("#tr_2").css('display' ,'');
$("#tr_3").css('display' ,'');
}else{
$("#tr_1").css('display' ,'none');
$("#tr_2").css('display' ,'none');
$("#tr_3").css('display' ,'none');
}
});
});
//获取url传递参数
function GetLocationParam(param){
var request = {
QueryString : function(val) {
var uri = window.location.search;
var re = new RegExp("" +val+ "=([^&?]*)", "ig");
return ((uri.match(re))?(decodeURI(uri.match(re)[0].substr(val.length+1))):'');
}
}
return request.QueryString(param);
}
var uid=GetLocationParam("id");//容器ID
var url=GetLocationParam("url");//返回地址
var jsUrl = GetLocationParam("jsUrl");//图表的JS架包路径
My97DatePicker/WdatePicker.js 日期插件
只显示时分秒
οnclick="WdatePicker({dateFmt:'HH:mm',quickSel:['%H-00-00','%H-15-00','%H-30-00','%H-45-00']})"
只显示年月日
onClick="WdatePicker({startDate:'${nowTime}'})"
js 比较日期大小
第一种方法:
function CompareDate(d1,d2)
{
return ((new Date(d1.replace(/-/g,"\/"))) > (new Date(d2.replace(/-/g,"\/"))));
}
var current_time = "2007-2-2 7:30";
var stop_time = "2007-1-31 8:30";
alert(CompareDate(current_time,stop_time));
第二种方法:
var curTime = new Date();
//2把字符串格式转换为日期类
var startTime = new Date(Date.parse(kc.begintime));
var endTime = new Date(Date.parse(kc.endtime));
//3进行比较
return (curTime>=startTime && curTime<=endTime);