会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
歲夢灬沉浮
博客园
首页
新随笔
联系
管理
订阅
07 2016 档案
js 长字符串换行
摘要:/**长字符串中插入换行符str:需要换行的字符串n:换行间隔字符数*/function insertEnter(str,n){ var len = str.length; var strTemp = ''; if(len > n){ strTemp = str.substring(0,n); st
阅读全文
posted @
2016-07-28 10:59
歲夢灬沉浮
jquery 操作iframe中元素,函数整理
摘要:收集利用Jquery取得iframe中元素的几种方法 : $(document.getElementById('iframeId').contentWindow.document.body).htm() 显示iframe中body元素的内容。 $("#testId", document.frames
阅读全文
posted @
2016-07-21 11:35
歲夢灬沉浮
阅读(242)
评论(0)
推荐(0)
PHP获得 时间戳 日期
摘要:比如,今天是2102年11月2号,那么php要获取2102年11月2号的时间戳是怎么办的呢? 代码:echo strtotime(date('Y-m-d')),''; 获取明天凌晨的时间戳 代码:echo strtotime(date('Y-m-d',strtotime('+1 day'))); $
阅读全文
posted @
2016-07-15 16:00
歲夢灬沉浮
Mysql中截取字符串方法 + in的使用
摘要:Mysql中截取字符串方法 MySQL 字符串截取函数:left(), right(), substring(), substring_index()。还有 mid(), substr()。其中,mid(), substr() 等价于 substring() 函数,substring() 的功能非常
阅读全文
posted @
2016-07-15 15:23
歲夢灬沉浮
Json转对象
摘要:法一: var data1 = "[{ value: '3017', label: '3017:有机磷农药,液体的,有毒的,易燃的'}, { value: '3018', label: '3018:有机磷农药,液体的,有毒的'}]";json1 = eval("(" + data1 + ")");
阅读全文
posted @
2016-07-14 19:22
歲夢灬沉浮
阅读(138)
评论(0)
推荐(0)
省市县区三级联动地址的请求方法
摘要:转:http://vote.wucheshuedu.com/index.php?s=/Home/Article/detail/id/35.html
阅读全文
posted @
2016-07-13 10:43
歲夢灬沉浮
php实现比较两个字符串日期大小的方法
摘要:<?php function dateBDate($date1, $date2) { // 日期1是否大于日期2 $month1 = date("m", strtotime($date1)); $month2 = date("m", strtotime($date2)); $day1 = date(
阅读全文
posted @
2016-07-13 10:34
歲夢灬沉浮
sql 中文like全or查询语句(转)
摘要:$a 字段列表$b 查询关键字$c 自定义where条件 function createlike($a,$b,$c=''){ $d = ''; $e = 'or'; $f = count($a); for ($i=0; $i < $f; $i++) { if ($i==$f-1) { $e = ''
阅读全文
posted @
2016-07-13 10:27
歲夢灬沉浮
远程下载文件
摘要:$msg= GrabImage($vo['url'],$vo['filename']); curl下载文件 <?php $source = "http://apkegg.mumayi.com/cooperation/2016/06/06/0/18/latiao_V1.1_mumayi_3dfc4.a
阅读全文
posted @
2016-07-13 09:51
歲夢灬沉浮
阅读(286)
评论(0)
推荐(0)
PHP获取汉字的拼音(全部与首字母)(转载博博客园2778085001)
摘要:<?php class GetPingYing { private $pylist = array( 'a'=>-20319, 'ai'=>-20317, 'an'=>-20304, 'ang'=>-20295, 'ao'=>-20292, 'ba'=>-20283, 'bai'=>-20265,
阅读全文
posted @
2016-07-13 09:42
歲夢灬沉浮
阅读(200)
评论(0)
推荐(0)
php不用递归实现无限分类数据的树形格式化
摘要:原文地址:http://www.oschina.net/code/snippet_173183_11767 <?php/** * 此方法由@Tonton 提供 * http://my.oschina.net/u/918697 * @date 2012-12-12 */FUNCTION genTree
阅读全文
posted @
2016-07-13 09:37
歲夢灬沉浮
PHP定时执行任务的实现 (转)
摘要:config.php<?phpreturn 1;?>cron.phpignore_user_abort();//关掉浏览器,PHP脚本也可以继续执行.set_time_limit(0);// 通过set_time_limit(0)可以让程序无限制的执行下去$interval=60*30;// 每隔半
阅读全文
posted @
2016-07-13 09:22
歲夢灬沉浮
阅读(298)
评论(0)
推荐(0)
公告