摘要: select * from (select shop_id,shop_name,shop_address,shop_avatar,ROUND(6378.138*2*ASIN(SQRT(POW(SIN(($latitude*PI()/180-`shop_lat`*PI()/180)/2),2)+COS 阅读全文
posted @ 2020-01-11 14:52 民兵谢二蛋 阅读(341) 评论(0) 推荐(0) 编辑
摘要: 1、ngrok下载地址:https://ngrok.com/download 2、解压:unzip -n ngrok-stable-darwin-amd64.zip -d /tmp 3、开启服务:./ngrok http localhost:8080 阅读全文
posted @ 2019-08-14 17:20 民兵谢二蛋 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 使用FormData上传压缩裁剪后的图片Blob对象 阅读全文
posted @ 2018-10-24 15:33 民兵谢二蛋 阅读(559) 评论(0) 推荐(0) 编辑
摘要: $(function(){ playVideo(); /*视频播放状态*/ $('.news_video').bind('play', function () { alert("正在播放视频"); }); /*视频结束或错误*/ $('.news_video').bind('error ended', function(... 阅读全文
posted @ 2018-08-18 13:55 民兵谢二蛋 阅读(347) 评论(0) 推荐(0) 编辑
摘要: $.fn.serializeJson=function(){ var serializeObj={}; var array=this.serializeArray(); var str=this.serialize(); $(array).each(function(){ ... 阅读全文
posted @ 2018-07-31 13:16 民兵谢二蛋 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-07-11 14:13 民兵谢二蛋 阅读(407) 评论(0) 推荐(0) 编辑
摘要: $(window).scroll(function(){ //判断是否滑动到页面底部 if($(window).scrollTop()== $(document).height() - $(window).height()){ // TODO 滑动到底部时可请求下一页的数据并加载,加载可使用append方法 } }); 阅读全文
posted @ 2018-06-19 17:39 民兵谢二蛋 阅读(1152) 评论(0) 推荐(0) 编辑
摘要: function getQueryVariable(variable) { var query = window.location.search.substring(1); var vars = query.split("&"); for (var i = 0; i < vars.length; i++) { var pair = vars[i].spli... 阅读全文
posted @ 2018-04-11 18:22 民兵谢二蛋 阅读(107) 评论(0) 推荐(0) 编辑
摘要: //兼容安卓微信调用摄像头 //兼容安卓默认选择sd卡上的相册图片 阅读全文
posted @ 2017-12-20 18:37 民兵谢二蛋 阅读(661) 评论(0) 推荐(0) 编辑
摘要: var clientHeight = document.documentElement.clientHeight || document.body.clientHeight; $(window).on('resize', function () { var nowClientHeight = document.documentElement.clientHeight || documen... 阅读全文
posted @ 2017-09-12 17:27 民兵谢二蛋 阅读(218) 评论(0) 推荐(0) 编辑