打你一下

2017年5月24日

小程序

摘要: 地图获取地址 // wx.getLocation({ // type: 'gcj02', //返回可以用于wx.openLocation的经纬度 // success: function(res) { // var latitude = '27.69363' // var longitude = ' 阅读全文

posted @ 2017-05-24 15:15 打你一下 阅读(149) 评论(0) 推荐(0) 编辑

2017年5月20日

php加密

摘要: 域名授权函数 function allow_doamin(){ $is_allow=false; $url=trim($_SERVER['SERVER_NAME']); $arr_allow_domain=array("4001.com");//这里可以添加多个授权域名 foreach($arr_a 阅读全文

posted @ 2017-05-20 11:21 打你一下 阅读(130) 评论(0) 推荐(0) 编辑

2017年5月11日

mysql一些常用配置

摘要: 清空表: truncate table 表名 让id重1开始 alter table `test` auto_increment=1 阅读全文

posted @ 2017-05-11 14:40 打你一下 阅读(139) 评论(0) 推荐(0) 编辑

2017年3月19日

slick插件一些配置

摘要: 阅读全文

posted @ 2017-03-19 17:56 打你一下 阅读(168) 评论(0) 推荐(0) 编辑

2017年3月7日

织梦

摘要: 显示序号 field:global runphp='yes' name=autoindex][/field:global] 简单的调用 {dede:sql sql="select * from dede_diyform7 where ifcheck=1 limit 1,4"} {/dede:sql} 阅读全文

posted @ 2017-03-07 14:24 打你一下 阅读(174) 评论(0) 推荐(0) 编辑

2017年3月1日

jquery常用实例

摘要: $("#returnTop").click(function () { var speed=200;//滑动的速度 $('body,html').animate({ scrollTop: 0 }, speed); return false; }); js判断手机还是电脑访问 <script type 阅读全文

posted @ 2017-03-01 13:34 打你一下 阅读(169) 评论(0) 推荐(0) 编辑

jquery upload

摘要: 阅读全文

posted @ 2017-03-01 10:57 打你一下 阅读(120) 评论(0) 推荐(0) 编辑

正则经验

摘要: 电子邮箱 var myreg = /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/; !myreg.test(mailvalue) 电话 /^1[3|4|5|7 阅读全文

posted @ 2017-03-01 09:33 打你一下 阅读(144) 评论(0) 推荐(0) 编辑

css经验之谈

摘要: //清除浮动 .clear { zoom:1; }.clear:after { content:''; display:block; clear:both; }.fl { float:left; }.fr { float:right; } 阅读全文

posted @ 2017-03-01 09:24 打你一下 阅读(137) 评论(0) 推荐(0) 编辑

2017年2月27日

html 经验之谈

摘要: 阅读全文

posted @ 2017-02-27 17:15 打你一下 阅读(129) 评论(0) 推荐(0) 编辑

导航