上一页 1 2 3 4 5 6 7 8 ··· 11 下一页
摘要: 1.html(tp5遍历表单元素) 2.js 3.php 阅读全文
posted @ 2018-12-05 15:56 好笑。 阅读(375) 评论(0) 推荐(0) 编辑
摘要: $start = new DateTime('2018-11-20'); $end = new DateTime('2019-11-15'); $diff = $start->diff($end); $diff_month = $diff->format('%y')*12+$diff->format('%m'); 阅读全文
posted @ 2018-12-04 14:31 好笑。 阅读(787) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-11-05 16:07 好笑。 阅读(54) 评论(0) 推荐(0) 编辑
摘要: /** *翻转utf格式的字符串,使用正则和数组实现 *@param string $str *@return string */ function strrvev_utf8($str){ return join("," , array_reverse(preg_split("//u" , $str))); } $str = "博客园"; echo strrev_utf8($str... 阅读全文
posted @ 2018-11-05 15:23 好笑。 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 1.node官网下载并安装(https://nodejs.org/en/) 2.node -v //查看版本 3.安装成功后后在Finder中打开用户目录(就是Mac管理员,点开侧栏创建一个Js文件,取名server-run.js就可以,在js文件中输入这些内容) 4.运行该js文件 5.使用npm 阅读全文
posted @ 2018-10-24 21:25 好笑。 阅读(664) 评论(0) 推荐(0) 编辑
摘要: //结果 baidu 阅读全文
posted @ 2018-10-22 14:58 好笑。 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 方法一:监听改变浏览器窗口高度的时候去触发事件 方法二:当输入框获得焦点时,重新修改按钮样式:{position,'static'},当输入框获得焦点时,样式恢复 阅读全文
posted @ 2018-10-07 16:42 好笑。 阅读(413) 评论(0) 推荐(0) 编辑
摘要: 区别: 1。import需要先引用template,然后再使用template include不需要预先引用,直接在需要的地方引入模版即可。 2。include模式非常简单,就是简单的代码替换,不存在作用域,也不能像import一样使用data传递变量 3 。import存在作用域的概念。即只会im 阅读全文
posted @ 2018-09-24 23:50 好笑。 阅读(791) 评论(0) 推荐(0) 编辑
摘要: 相同点:实现页面跳转 区别: redirectTo将关闭当前页面,跳转到指定的页面。 navigateTo将保留当前页面,跳转到指定到页面。 switchTap只能用于跳转到带tabbar到页面,并关闭其他所有到非tabbar页面 阅读全文
posted @ 2018-09-24 23:10 好笑。 阅读(246) 评论(0) 推荐(0) 编辑
摘要: wxml页面 wxss页面 js页面 效果图:(点击跳转到另一个页面) 阅读全文
posted @ 2018-09-24 13:29 好笑。 阅读(205) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 11 下一页