摘要:
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 阅读全文
摘要:
1、ngrok下载地址:https://ngrok.com/download 2、解压:unzip -n ngrok-stable-darwin-amd64.zip -d /tmp 3、开启服务:./ngrok http localhost:8080 阅读全文
摘要:
使用FormData上传压缩裁剪后的图片Blob对象 阅读全文
摘要:
$(function(){ playVideo(); /*视频播放状态*/ $('.news_video').bind('play', function () { alert("正在播放视频"); }); /*视频结束或错误*/ $('.news_video').bind('error ended', function(... 阅读全文
摘要:
$.fn.serializeJson=function(){ var serializeObj={}; var array=this.serializeArray(); var str=this.serialize(); $(array).each(function(){ ... 阅读全文
摘要:
$(window).scroll(function(){ //判断是否滑动到页面底部 if($(window).scrollTop()== $(document).height() - $(window).height()){ // TODO 滑动到底部时可请求下一页的数据并加载,加载可使用append方法 } }); 阅读全文
摘要:
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... 阅读全文
摘要:
//兼容安卓微信调用摄像头 //兼容安卓默认选择sd卡上的相册图片 阅读全文
摘要:
var clientHeight = document.documentElement.clientHeight || document.body.clientHeight; $(window).on('resize', function () { var nowClientHeight = document.documentElement.clientHeight || documen... 阅读全文