// 访问 test 模块下的 helloWorld 方法 $api.test.helloWorld({ a: 1 }).then((data) => { console.log("resp-data: " + JSON.stringify(data)); }); 打印发现 $api.test 为 {} $api.test.helloWorld 为 undefined
// 访问 test 模块下的 helloWorld 方法
$api.test.helloWorld({ a: 1 }).then((data) => {
console.log("resp-data: " + JSON.stringify(data));
});
打印发现
$api.test 为 {}
$api.test.helloWorld 为 undefined