2009年5月19日
通过Date来设置时间 如果硬件的时间不正确
设置也是无效的。需要设置硬件的时间:
hwclock 查看硬件时钟 此command 只有root能使用 一般user无法使用
更改硬件时钟
例:
hwclock --set --date="12/01/2007 10:45:34"
月 日 年 时 分 秒
同步系统时间和硬件时间
hwclock --hctosys
date用法
例:
date 120110552007...
Tags:
2009年5月8日
模式 String.endwith 功能.
[CODE_LITE]
String.prototype.endwith = function(element) {
if (this.length > 0) {
if (element.length > 0) {
if (this.substring(this.length-element.length)==element) {
return true;
...
Tags:
2009年5月4日
[CODE_LITE]
function getMobileServices(mobile) {
if(mobile.startwith("0")==true){
mobile=mobile.substring(1);
}
if(mobile.startwith("+086")==true){
mobile=mobile.substring(4);
}
var chinaunicom=new Array("130","131","132","133");
var chinamo...
Tags:
2009年5月4日
在开发过程中使用了JS脚本.因对一些代码的使用频繁.对JS进行了一些扩展.
模拟类似与.Net中的一些功能.为以后的操作带来简便性.
1.String.startwith功能
[CODE_LITE]
String.prototype.startwith = function(element) {
var l = element.length;
if (this.length > 0) {
if (l > 0) {
if (...
Tags: