您需要先 登录 才能评论/回答
全部评论(7)
测试只许成功不许失败
测试只许成功不许失败
测试只许成功不许失败
赞
2024-08-05 16:00:37
引用:“测试只许成功不许失败 测试只许成功不许失败 测试只许成功不许失败”
listen_network() {
let netSpecifier: connection.NetSpecifier = {
netCapabilities: {
// 假设当前默认网络是WiFi,需要创建蜂窝网络连接,可指定网络类型为蜂窝网
bearerTypes: [connection.NetBearType.BEARER_CELLULAR, connection.NetBearType.BEARER_WIFI],
},
};
let conn = connection.createNetConnection(netSpecifier);
conn.register((err: BusinessError, data: void) => {
console.warn("register 网络 " + JSON.stringify(err))
});
赞
引用:“测试只许成功不许失败 测试只许成功不许失败 测试只许成功不许失败”
{
"subsystem": "test",
"components": [
{ "component": "xts_acts", "features":[] },
{ "component": "xts_tools", "features":[] }
]
},
赞
测试测试
赞
2024-06-13 20:18:44