![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JavaScript面试题
Virus&
软件开发工作者在线分享学习笔记
展开
-
微信小程序怎么获取openId
微信小程序怎么获取openId1、在微信js文件中获取appid,secret这两个参数在微信公众号管理平台——>开发——>开发设置 wx.login({ success: function (res) { console.log("res.code=====" + res.code); if (res.code) { ...原创 2020-04-22 16:20:14 · 388 阅读 · 0 评论 -
js数组去除重复项
js数组去重复数1.使用数组函数filterfunction test(arr){ var a = arr.filter(function(v,k,arr){ return arr.indexOf(v) == k }) return a}var a = test([4,3,3,1])a.sort((a,b) => a-b)cons...原创 2020-03-25 13:14:22 · 120 阅读 · 0 评论