我的第一个Nodejs程序:Hello World var http = require("http");http.createServer(function(request, response) { response.writeHead(200, {"Content-Type": "text/.....
分类:
Web程序 时间:
2014-06-17 19:59:52
阅读次数:
241
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.IO;namespace WebBuild_CRM.Common{ public class Excep...
分类:
其他好文 时间:
2014-06-17 19:57:12
阅读次数:
250
java.text.SimpleDateFormat formatter = new java.text.SimpleDateFormat("yyyy-MM-dd hh-mm-ss");
java.util.Date d = formatter.parse("2014-06-18 07-30-00");
if (java.lang.System.currentT...
分类:
编程语言 时间:
2014-06-17 19:04:15
阅读次数:
258
<?phpHeader("Content-type:text/html;charset=utf-8");/*********************************《关于PHP面向对象的总结》**********************************前言:1.其实魔术方法也是方法是函数,跟前面讲的函数一样,只不过在类里面有$this->name这样的东西,他就是类的..
分类:
Web程序 时间:
2014-06-17 17:40:01
阅读次数:
297
importjava.text.DecimalFormat;
publicclassDecimalFormatTest
{
publicstaticvoidmain(String[]args){
DecimalFormatdf1,df2;
System.out.println("整数部分0/#的区别");
df1=newDecimalFormat("#.00");
df2=newDecimalFormat("0.00");
System.out.p..
分类:
其他好文 时间:
2014-06-17 17:32:15
阅读次数:
249
Java编写处理定时任务主要用到的类是java.util.Timer和java.util.TimerTask;如下几行代码就可以实现一个具有定时执行任务的定时器:importjava.text.ParseException;
importjava.text.SimpleDateFormat;
importjava.util.Date;
importjava.util.Timer;
importjava.util.TimerT..
分类:
编程语言 时间:
2014-06-17 17:16:38
阅读次数:
252
例:string Content =“"&lt;p style=&quot;TEXT-ALIGN:center;&quot;&gt;&lt;span style=&quot;font-family:宋体;&quot;&gt;&l...
分类:
其他好文 时间:
2014-06-17 15:44:56
阅读次数:
218
1、用字符串分隔:using System.Text.RegularExpressions;string str="aaajsbbbjsccc";string[] sArray=Regex.Split(str,"js",RegexOptions.IgnoreCase);foreach (string...
分类:
其他好文 时间:
2014-06-17 15:12:33
阅读次数:
210
有3个:floor — 舍去法取整 floor ($value )返回不大于 value 的下一个整数,将 value 的小数部分舍去取整。floor() 返回的类型仍然是 float,因为 float 值的范围通常比 integer 要大。 ceil — 进一法取整ceil ( $value )....
分类:
Web程序 时间:
2014-06-17 15:08:58
阅读次数:
234
Ubuntu11更新语言插件,更新时提示正在更新缓存”“正在等待jockey-backend退出”,然后就不动了.解决方案:在终端中键入ps-e|grepjockey系统会显示一组执行程序号码(?)在终端中输入sudokill号码
分类:
其他好文 时间:
2014-06-17 14:30:22
阅读次数:
241