- 博客(3)
- 收藏
- 关注
转载 时间戳转换
时间戳转换echo gmdate(" F d,Y",time());exit();//英文格式date("Y-m-d",strtotime($content['publish_time']));//时间格式不要时分秒//既然已经显示为时间了,要去掉时分秒,可以使用date函数,date(format,timestamp);//fortmat 必需 规定如何返回结果即规定返回结果的...
2018-10-10 14:46:22
189
转载 textarea文本保存到数据库,前端输出保存换行回车解决方案
textarea文本保存到数据库,前端输出保存换行回车解决方案$(function() { init();} ); function init() { var text = $("div.text").text(); //先取出未转换格式前端数据 var des = text.replace(/\r\n/g, '<br/>').replac...
2018-10-10 14:43:53
1413
转载 js 页面跳转
**js 页面跳转**//本页面跳转 self.location='';延迟刷新 setTimeout(function(){ //使用 setTimeout()方法设定定时2000毫秒 window.location.reload(); //页面刷新 },2000);...
2018-10-10 14:42:46
322
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人