随笔分类 -  工作积累

摘要:必须的参数:appid和appSecret①获取code接口链接示例:https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxbafc7fdf3664b600&redirect_uri=http%3a%2f%2f0708.pinzhi3... 阅读全文
posted @ 2015-07-03 12:15 积累从点滴开始 阅读(2275) 评论(0) 推荐(0)
摘要:SpringMVC表单标签简介 在使用SpringMVC的时候我们可以使用Spring封装的一系列表单标签,这些标签都可以访问到ModelMap中的内容。下面将对这些标签一一介绍。 在正式介绍SpringMVC的表单标签之前,我们需要先在JSP中声明使用的标签,具体做法是在JSP文件的顶部加入以下指... 阅读全文
posted @ 2014-12-10 11:08 积累从点滴开始 阅读(2699) 评论(0) 推荐(0)
摘要:和以往写struts2程序一样,action方法跳转到一个JSP中,为了配合jsonp的跨域,要在JSP中做一个输出JSP:其中jsonStr是从action层赋值号的,要传给接口的返回值--------------------------------------------------------... 阅读全文
posted @ 2014-12-10 11:02 积累从点滴开始 阅读(3497) 评论(0) 推荐(0)
摘要:1.直接嵌入js代码:2.在中,加入: 阅读全文
posted @ 2014-05-05 14:33 积累从点滴开始 阅读(211) 评论(0) 推荐(0)
摘要:Document 阅读全文
posted @ 2014-04-15 16:56 积累从点滴开始 阅读(1497) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2014-04-14 14:07 积累从点滴开始 阅读(704) 评论(0) 推荐(0)
摘要:oracle之报错:ORA-00054: 资源正忙,要求指定 NOWAIT问题如下:SQL> conn scott/tiger@vm_databaseConnected to Oracle Database 11g Enterprise Edition Release 11.1.0.6.0Connected as scott。。。。。。SQL> drop table student2;drop table student2ORA-00054: 资源正忙, 但指定以 NOWAIT 方式获取资源, 或者超时失效====================================== 阅读全文
posted @ 2014-03-26 14:28 积累从点滴开始 阅读(84967) 评论(0) 推荐(0)
摘要:js读写cookie//JS操作cookies方法!//写cookiesfunction setCookie(name,value){var Days = 30;var exp = new Date();exp.setTime(exp.getTime() + Days*24*60*60*1000);document.cookie = name + "="+ escape (value) + ";expires=" + exp.toGMTString();}//读取cookiesfunction getCookie(name){var arr,reg=ne 阅读全文
posted @ 2014-03-15 15:40 积累从点滴开始 阅读(263) 评论(0) 推荐(0)
摘要:html代码:js代码:function uploadImg(cookbookId){ var cbId = cookbookId; $.ajaxFileUpload({ url:'${web.context.path}/restaurant/uploadCookbookImg.action', //上传文件的服务端 secureuri:false, //是否启用安全提交 dataType: 'text', //数据类型 ... 阅读全文
posted @ 2014-03-11 17:43 积累从点滴开始 阅读(650) 评论(0) 推荐(0)
摘要:需求:有一个数组:(北京菜,粤菜),checkbox如下:现在想通过遍历这个数组,使数组里包含的值,在checkbox选中代码:var flavors = new Array([北京菜 , 粤菜]);$.each(flavors,function(i,item){$("input[name='checkboxFlavor'][value="+item+"]").attr("checked","checked");});体会:选择器的[]可以有多重的选择条件 阅读全文
posted @ 2014-02-24 16:28 积累从点滴开始 阅读(3591) 评论(0) 推荐(0)
摘要:var video_src_file = $("#video_src_file").val(); var fileTypes = new Array("flv","3gp","mpeg","avi","mp4"); //定义可支持的文件类型数组 var fileTypeFlag = "0"; var newFileName = video_src_file.split('.'); newFileName = newFileName[newF 阅读全文
posted @ 2013-12-07 14:29 积累从点滴开始 阅读(12304) 评论(0) 推荐(0)
摘要:假设table的id为:t1$(document).ready(function(){ $('#t1 > tbody tr:even').css('background','white'); $('#t1 > tbody tr:odd').css('background','#f1f5f8'); });even为奇数行,odd为偶数行效果如图: 阅读全文
posted @ 2013-07-03 16:32 积累从点滴开始 阅读(7416) 评论(1) 推荐(0)
摘要:/searchBaCustomerExpress.action"> 快递查询style来控制样式;cursor:pointer代表鼠标滑过变成小手图标text-decoration:none代表不显示下划线 阅读全文
posted @ 2013-07-02 11:45 积累从点滴开始 阅读(10464) 评论(0) 推荐(0)
摘要:JS本身没有trim()函数,不能通过直接调用去掉字符串首尾的空格可以通过正则表达式var str = "123456 ";str = str.replace(/(^\s*)|(\s*$)/g, "");alert(str);这样,最后得到的str,首尾就不带有空格了。 阅读全文
posted @ 2013-05-27 15:49 积累从点滴开始 阅读(342) 评论(0) 推荐(0)
摘要:<select id="taskauditStatus4audit" name="taskaudit.status4audit"> <option value="-1">请选择</option> <option value="0">未审核</option> <option value="1">审核成功</option> <option value="2">审核失败</opti 阅读全文
posted @ 2013-02-04 15:58 积累从点滴开始 阅读(21736) 评论(1) 推荐(0)
摘要:update表名 set字段=trim(字段)ps:在查询中去掉回车的办法:select REPLACE(字段,'\r\n','') from 表 阅读全文
posted @ 2013-01-24 10:19 积累从点滴开始 阅读(3033) 评论(0) 推荐(0)
摘要:<a href="******" target=_blank>另外:_blank -- 在新窗口中打开链接 _parent -- 在父窗体中打开链接 _self -- 在当前窗体打开链接,此为默认值 _top -- 在当前窗体打开链接,并替换当前的整个窗体(框架页) 阅读全文
posted @ 2013-01-21 17:23 积累从点滴开始 阅读(4956) 评论(0) 推荐(0)
摘要:在bin/catalina.sh,打开在第一行粘入:declare-xCATALINA_OPTS="-Xdebug-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000"在MyEclipse中,右键点击对应的webproject->debugas->DebugConfigurations->RemoteJavaApplication右键->new->选好项目名->Host填写远程的服务器的IP地址->Port填写配置catalina.sh的那个字符串里:addres 阅读全文
posted @ 2013-01-17 09:55 积累从点滴开始 阅读(288) 评论(0) 推荐(0)
摘要:html代码:<input type="radio" id="callSuccess" name="isSuccessCalled" value="1" />呼叫成功 <input type="radio" id="callFail" name="isSuccessCalled" value="2" />呼叫失败jquery代码:var radioVal = $('input:radio[name=&qu 阅读全文
posted @ 2013-01-11 16:13 积累从点滴开始 阅读(157) 评论(0) 推荐(0)
摘要:1.String 转 DateString dateStr = "2012-12-31 00:00:00";Date date = new Date();DateFormatsdf=newSimpleDateFormat("yyyy-MM-ddHH:mm:ss"); date = sdf.parse(dateStr);2.Date 转 StringDate date = new Date();DateFormatsdf=newSimpleDateFormat("yyyy-MM-ddHH:mm:ss"); String dateStr 阅读全文
posted @ 2013-01-08 18:10 积累从点滴开始 阅读(9991) 评论(0) 推荐(0)