随笔分类 -  前端

js,jq。。。。
摘要:WXML <view class="page"> <!-- 车牌号码输入框 --> <view class="carNumber"> <view class="weui-cells__title">请输入您要缴费的车牌号码</view> <!-- 车牌号头两位 --> <view class="ca 阅读全文
posted @ 2023-11-29 13:41 霖薇暮 阅读(379) 评论(0) 推荐(0)
摘要:// toHump.js const toHump = async (ctx, next) => { ctx.write = (obj) => ctx.body = toHumpFun(obj) await next() } function toHumpFun(obj) { const resul 阅读全文
posted @ 2023-10-30 17:03 霖薇暮 阅读(40) 评论(0) 推荐(0)
摘要:const PI = 3.1415926535897932384626433832795 const x_pi = PI * 3000.0 / 180.0 //百度转高德/腾讯 function latlonFormat1(loaction) { var lon = loaction.split(" 阅读全文
posted @ 2023-10-29 21:17 霖薇暮 阅读(253) 评论(0) 推荐(0)
摘要://判断经纬度是否在范围内 function IsPtInPoly(aLat, aLon, pointList) { /* :param aLon: double 经度 :param aLat: double 纬度 :param pointList: list [{latitude: 22.22, 阅读全文
posted @ 2023-10-29 21:17 霖薇暮 阅读(58) 评论(0) 推荐(0)
摘要:// 经纬距离计算 function distance(la1, lo1, la2, lo2) { var La1 = (la1 * Math.PI) / 180.0 var La2 = (la2 * Math.PI) / 180.0 var La3 = La1 - La2 var Lb3 = (l 阅读全文
posted @ 2023-10-29 21:16 霖薇暮 阅读(25) 评论(0) 推荐(0)
摘要:来自:http://blog.csdn.NET/liujun198773/article/details/7554628 感谢 $(function(){ var mydate = new Date(); var t=mydate.toLocaleString(); /*alert(t);*/ $( 阅读全文
posted @ 2019-09-25 13:17 霖薇暮 阅读(3346) 评论(0) 推荐(0)