//接口封装:封装document.getElementByClassName()函数function getElementsByClassName (cName,domTag,root) {//该函数有三个参数:第一个参数是class名(必选,字串形式);第二个参数是父容器(可选),默认为body ...
分类:
Web程序 时间:
2016-05-06 12:02:48
阅读次数:
711
利用getimagesize函数:function isImage($filename){$types = '.gif|.jpeg|.png|.bmp';//定义检查的图片类型if(file_exists($filename)){$info = getimagesize($filename);$ex ...
分类:
Web程序 时间:
2016-05-06 10:52:08
阅读次数:
210
<scrpit> window.onload = function () { var u = navigator.userAgent; if (u.indexOf('Android') > -1 || u.indexOf('Linux') > -1) {//安卓手机 alert("安卓手机"); } ...
分类:
移动开发 时间:
2016-05-06 10:39:56
阅读次数:
143
4.1、捕获其他程序窗口句柄要对其他程序进行操作,首先要捕获其他程序的窗口句柄。‘查找标题栏包含“inWindowText ” 的窗口,窗口标题内容不确定的可以使用,例如动态变化标题的窗口,如果标题固定,直接用FindWindowEx()就可以了。Public Function MyFindWind ...
分类:
Web程序 时间:
2016-05-06 09:29:17
阅读次数:
547
Write a function to find the longest common prefix string amongst an array of strings. 1 public class Solution { 2 3 // 1. Method 1, start from the fi ...
分类:
其他好文 时间:
2016-05-06 07:04:24
阅读次数:
148
/* 创建对象的最好方式:混合的构造函数/原型方式, *用构造函数定义对象的所有非函数属性,用原型方式定义对象的函数属性(方法) */ function People(sname){ this.name = sname; } People.prototype.sayName = function() ...
分类:
其他好文 时间:
2016-05-06 02:04:53
阅读次数:
131
The Euler function Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Problem Description The Euler function phi is an i ...
分类:
其他好文 时间:
2016-05-06 00:39:54
阅读次数:
116
$.get('/js/templates/filename.html', function(template) { $.tmpl(template, data).appendTo('#whatever'); }); filename.html为模板文件,或者filename.htm不要写成filen ...
分类:
Web程序 时间:
2016-05-06 00:34:25
阅读次数:
594
Write a function that takes a string as input and reverse only the vowels of a string. Example 1:Given s = "hello", return "holle". Example 2:Given s ...
分类:
其他好文 时间:
2016-05-05 22:42:02
阅读次数:
204
create or replace function fun_try(v_name varchar,v_outname out varchar)return varchar2 is Result varchar2(200);begin select smenuname,smenuname into ...
分类:
数据库 时间:
2016-05-05 22:33:39
阅读次数:
221