WordPress代码高亮插件测试
WordPress自动生成的这篇就拿来测试用吧。
package com.crm.util; import java.text.DateFormat; import java.util.Date; import java.text.SimpleDateFormat;; public class FormartTime { public String currentlyTime() { Date date = new Date(); DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.FULL); return dateFormat.format(date); } public String currentTime(){ String time =new SimpleDateFormat("yyyy-MM-dd").format(new Date()); return time; } public String cuTime(){ String time=new SimpleDateFormat("yyyyMMddhhmmss").format(new Date()); return time; } public String currentTimes(String time) { String times=time.substring(0,9); return times; } }
除非另有声明,本站遵循【署名-非商业性使用-相同方式共享 3.0 共享协议】授权。
转载原创文章请注明,转载自:Neeke[http://www.ineeke.com]

代码是怎样放到文章上面的啊,我放上去就显示错误,是不是用什么插件的啊???
是要用插件的。
改变了?呵呵,你会火!呵呵
你果然换程序了。。
那是当然了。