赞
踩
wx.request({ method: 'GET', url: "https://api.weixin.qq.com/cgi-bin/token", data: { appid: '小程序APPID', secret: '小程序密钥', grant_type: "client_credential" }, header: { "Content-Type": "application/json"}, success: (res_token) => { //获取 access_token let access_token = res_token.data.access_token; //输出调用凭据 console.log("access_token===="+access_token); } });
//假设你通过第一步 获取 access_token
let access_token = access_token ;
// console.log("access_token===="+access_token);
// 需要检测的文本
const contentObject = "你需要检测的文本内容";
console.log("contentObject ======"+contentObject )
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。