Lines Matching refs:err
72 data.isCellularDataEnabled((err, value) => {
73 if (err) {
74 // 接口调用失败,err非空
75 console.error(`failed to isCellularDataEnabled because ${err.message}`);
78 // 接口调用成功,err为空
87 }).catch((err) => {
89 console.error(`failed to isCellularDataEnabled because ${err.message}`);
116 data.getCellularDataState((err, value) => {
117 if (err) {
118 // 接口调用失败,err非空
119 console.error(`failed to getCellularDataState because ${err.message}`);
122 // 接口调用成功,err为空
131 }).catch((err) => {
133 console.error(`failed to getCellularDataState because ${err.message}`);