如何解决 阿里SDK @alicloud/pop-core not defined 问题?
demo(){
const Core = require('@alicloud/pop-core');
var client = new Core({
accessKeyId: 'xxxxxxx',
accessKeySecret: 'xxxxxxx',
// securityToken: '', // use STS Token
endpoint: 'https://nlp-automl.cn-hangzhou.aliyuncs.com',
apiVersion: '2019-11-11'
});
VaR 参数 = {
"ModelId": 16583,
"Content": "PAB台盆没水"
}
var 请求选项 = {
method: 'POST',
格式参数:假,
};
client.request('GetPredictResult', params, requestOption).then((result) => {
console.log(JSON.stringify(result));
}, (ex) => {
控制台。日志(例如);
})
},
[图片]