const Core = require('@alicloud/pop-core');
var client = new Core({
accessKeyId: ‘’,
accessKeySecret: ‘’,
endpoint: ‘https://dns.aliyuncs.com’,
apiVersion: ‘2015-01-09’
});
var params = {
“SubDomain”: “www.xxxxxxx.top”
}
var requestOption = {
method: ‘POST,GET’
};
client.request(‘DescribeSubDomainRecords’, params, requestOption).then((result) => {
console.log(JSON.stringify(result));
}, (ex) => {
console.log(ex);
})
这个是阿里dns解析的程序 想把输出结果return msg。对node.js不熟悉。请问怎么写