总结
- 对于框架原理只能说个大概,真的深入某一部分具体的代码和实现方式就只能写出一个框架,许多细节注意不到。
开源分享:【大厂前端面试题解析+核心总结学习笔记+真实项目实战+最新讲解视频】
-
算法方面还是很薄弱,好在面试官都很和蔼可亲,擅长发现人的美哈哈哈…(最好多刷一刷,不然影响你的工资和成功率???)
-
在投递简历之前,最好通过各种渠道找到公司内部的人,先提前了解业务,也可以帮助后期优秀 offer 的决策。
-
要勇于说不,对于某些 offer 待遇不满意、业务不喜欢,应该相信自己,不要因为当下没有更好的 offer 而投降,一份工作短则一年长则 N 年,为了幸福生活要慎重选择!!!
第一次跳槽十分忐忑不安,和没毕业的时候开始找工作是一样的感受,真的要相信自己,有条不紊的进行。如果有我能帮忙的地方欢迎随时找我,比如简历修改、内推、最起码,可以把烦心事说一说,人嘛都会有苦恼的~
祝大家都有美好的未来,拿下满意的 offer。
// console.log(‘当前位置的经度:’ + res.longitude);
// console.log(‘当前位置的纬度:’ + res.latitude);
that.latitude = res.latitude;
that.longitude = res.longitude;
that.nearby_search();
// that.getsLocation(that.longitude, that.latitude);
//判断是否开启经纬度转度分秒wechat=1为度分秒
if (that.wechat == 1) {
that.formatDegree(that.latitude);//纬度转度分秒
// console.log(that.formatDegree(that.latitude));
that.latitude = that.formatDegree(that.latitude);
that.formatDegree(that.longitude);//经度转度分秒
that.longitude = that.formatDegree(that.longitude);
}
var lng = res.longitude;//经度
var lat = res.latitude;//纬度
that.gcj2bdString(lng, lat);//GCJ-02纬度度调用方法转换成BD-09
that.baidulongitude = (that.gcj2bdString(lng, lat).lng).toFixed(5);//经度保留小数点后5位
that.baidulatitude = (that.gcj2bdString(lng, lat).lat).toFixed(5);//纬度保留小数点后5位
//判断是否开启经纬度转度分秒
if (that.wechat == 1) {
that.formatDegree(that.baidulongitude);//百度纬度转度分秒
that.baidulongitude = that.formatDegree(that.baidulongitude);
that.formatDegree(that.baidulatitude);//百度经度转度分秒
that.baidulatitude = that.formatDegree(that.baidulatitude);
}
// console.log(that.latitude);
}
})
},
火星坐标系 (GCJ-02) 转百度坐标系 (BD-09):
因为除了百度地图,不管是高德地图、腾讯地图、谷歌地图用的都是火星坐标系 (GCJ-02),所以就需要百度转换下,我也是服了!
// 地图转换GCJ-02坐标转换成百度的BD-09坐标
// 参数形式为lng,lat
// 返回值:lng,lat
gcj2bdString(lng, lat) {
const xpi = 3.14159265358979324 * 3000.0 / 180.0
const z = Math.sqrt(lng * lng + lat * lat) + 0.00002 * Math.sin(lat * xpi);
const theta = Math.atan2(lat, lng) + 0.000003 * Math.cos(lng * xpi);
// console.log( z * Math.cos(theta) + 0.0065);
return {
lng: z * Math.cos(theta) + 0.0065,
lat: z * Math.sin(theta) + 0.006
}
},
读者福利
========
开源分享:【大厂前端面试题解析+核心总结学习笔记+真实项目实战+最新讲解视频】
由于篇幅过长,就不展示所有面试题了,想要完整面试题目的朋友(另有小编自己整理的2024大厂高频面试题及答案附赠)