1 var decode = function(m) { 2 try { 3 m =
decodeURIComponent(m); 4 } catch(e) {} 5 var s = m.split("%"); 6 if (s.length
> 1)...
分类:
移动开发 时间:
2014-04-30 20:11:33
阅读次数:
590
1、jQuery获取Select元素,并选择的Text和Value: 1.
$("#select_id").change(function(){//code...}); //为Select添加事件,当选择其中一项时触发 2. var
checkText=$("#select_id").find(.....
分类:
Web程序 时间:
2014-04-30 19:27:58
阅读次数:
555
index.html星月随笔这个页面中的 charset编码可以变成其他的。utf-81.js
(编码方式 utf-8)function getPageCharset(){ var charSet = ""; var oType =
getBrowser(); switch(...
分类:
Web程序 时间:
2014-04-30 13:10:20
阅读次数:
443
未命名#!/bin/bash#======================================================#文件:var_test.sh#作者:daojoo,
daojoo@qq.com#作用:测试变量设置时的不同模式#版本:1.0#日期:2012年03月09日 星期...
分类:
其他好文 时间:
2014-04-29 11:45:46
阅读次数:
272
1.setuid的作用我们知道当给一个命令赋予了setuid权限之后,那么用户在执行这个命令时便暂时拥有了该命令所有者的权限,也就是说,不管是谁执行的此命令,都是以该命令所有者的身份执行的。在Linux系统中,最明显的一个例子就是passwd这个命令。我们查看/etc/shadow这个文件的权限如下...
分类:
其他好文 时间:
2014-04-29 11:43:45
阅读次数:
428
js 验证手机号码 //验证手机号 function isMobel(value) { if
(/^1[3-8]+\d{9}$/g.test(value)) { return true; } else { return false; } }
分类:
移动开发 时间:
2014-04-29 11:12:46
阅读次数:
369
1. 使用 makefile 的原因假如每次都手动输入, 可能会写出这样的编译命令gcc -c
main.cgcc -c mytool1.cgcc -c mytool2.cgcc -o main main.o mytool1.o mytool2.o那么,
可不可以将这个命令写成 shell 脚本呢,...
分类:
其他好文 时间:
2014-04-29 10:48:46
阅读次数:
326
HTML DOM event 事件, 用用就知道了function
isKeyPressed(eventssdasd) // 这个地方其实无关紧要,就是定义一个名称而已, 不过为了好看, 最好还是写成 event{ if
(event.altKey==1)//event代表事件的状态,例如触发eve...
分类:
Web程序 时间:
2014-04-29 10:26:46
阅读次数:
474
crontab运行脚本存在两大问题:环境变量和路径,从而导致单独运行脚本没问题,但用crontab运行就报错。1、环境变量
描述问题:crontab: usage error: no arguments permitted after this option
因为crontab不提供环境,所...
分类:
其他好文 时间:
2014-04-29 10:23:47
阅读次数:
370
一、height() 方法 height()
方法返回或设置匹配元素的高度$(".btn1").click(function(){ $("p").height(50);});height方法事例
分类:
Web程序 时间:
2014-04-29 10:17:45
阅读次数:
411