在body注册一下滑轮事件然后JS代码如下: function win_onload() { ////注册按键事件 //document.onkeydown = keydown; /*注册事件*/ if(doc...
分类:
Web程序 时间:
2015-10-22 19:18:58
阅读次数:
222
在jQquery中,可以用如下方式触发input、a标签的click事件:$("#my_input").click(function () { //do something });或$("#my_a").click(function () { //do something }...
分类:
其他好文 时间:
2015-10-22 19:07:07
阅读次数:
159
建立函数:create or replace function my_fun(in_no in number) return varchar2 is out_name varchar2(64); begin select ename into out_name from emp w...
分类:
数据库 时间:
2015-10-22 19:00:37
阅读次数:
190
建函数的语法create or replace function 函数名(参数 输入还是输出 参数类型) return 数据类型is 返回值 返回值的数据类型begin函数要做的操作end;sql语句演示:create or replace function my_fun(in_no in numb...
分类:
数据库 时间:
2015-10-22 18:55:14
阅读次数:
171
$('#J_sendSms').click(function(){ var _this = $(this); if(!$("#mobile").val()) return alert("手机号码不能为空"); $.get("/m...
分类:
其他好文 时间:
2015-10-22 18:49:26
阅读次数:
169
"sAjaxSource" : "/listt?&now=" + new Date().getTime(), //服务器端,数据回调处理 "fnServerData" : function(sSource, aDataSet, fnCallback, oSettings) { oSet...
分类:
其他好文 时间:
2015-10-22 17:12:00
阅读次数:
217
常用的一些日期操作。用js获取一个时间戳。得到的数值其实是从1970-1-1到当前的时间的毫秒数。时间戳转化成日期。那么日期加减的话就可以这样写吧。更详细的话。function formatDate(now) {var year=now.getYear();var month=now.getMont...
分类:
Web程序 时间:
2015-10-22 17:06:46
阅读次数:
230
From: http://www.shipingzhong.cn/node/1217//第一个是原串,第二个是 部份串function startWith($str, $needle) { return strpos($str, $needle) === 0;}//第一个是原串,第二个是 部份串fu...
分类:
Web程序 时间:
2015-10-22 14:09:05
阅读次数:
3253
一,传统的ajax方法 1、js代码 $("#ajax").click(function(){??
?????$.ajax({??
?????type:?"POST",??
?????url:?"http://manual.51yip.com/test2.php",??
?????data:?‘name=aja...
分类:
Web程序 时间:
2015-10-22 12:39:48
阅读次数:
115
Write a function to find the longest common prefix string amongst an array of strings.解法:从所有的string的头到尾的字母逐一比较即可。class Solution {public: string lon...
分类:
其他好文 时间:
2015-10-22 12:28:49
阅读次数:
187