收藏
回答

page.data如何进行赋值?

data 数据打印出来 如下

 {'vueId': '', 'scopedSlotsCompiler': '', 'vueSlots': [], 'activeDiot': [1, 2, 3], 'step': 1, 'skip': False, 'has': '0', 'showBack': True, 'servicePos': True, 'serviceBlt'e, 'serviceWifi': False, 'checkPos': True, 'checkBlt': True, 'checkWifi': False, 'againB': False, 'beginCheck': True, 'onT': False, 'titleContent': {'curStep': '1', 'allStep': '3'}, 'bColor': 'white', 'isIos': True, 'showPass': False, 'allDevice': [{'name': 'MAGM-14d8', 'deviceId': 'EE:24:37:97:28:C3', 'RSSI': -56, 'advertisServiceUUIDs': ['00000a18-0000-1000-8000-00805f9b34fb']}, {'name': 'MAGM-055e', 'deviceId': '15:27:AD:14:6C:41', 'RSSI': -81, 'advertisServiceUUIDs': ['00000a18-0000-1000-8000-00805f9b34fb']}, {'name': 'MAGM-f51c', 'deviceId': '06:19:25:46:03:B1', 'RSSI': -86, 'advertisServiceUUIDs': ['00000a18-0000-1000-8000-00805f9b34fb']}], 'chooseDevice': {'name': 'MAGM-14d8', 'deviceId': 'EE:24:37:97:28:C3', 'RSSI': -56, 'advertisServiceUUIDs': ['00000a18-0000-1000-8000-00805f9b34fb']}, 'allWifi': [], 'preWifi': {}, 'getRes': {'width': 87, 'height': 32, 'left': 226, 'top': 24, 'right': 313, 'bottom': 56}, 'skips': False, 'steps': 1, 'screenHe': 568, 'backUrl': '/pages/subPack/MirrorList/index', 'chooseId': 'EE:24:37:97:28:C3'}

data类型: <class 'minium.miniprogram.base_driver.connection.DevToolMessage'>

想要选择 allDevice.name = 'MAGM-f51c'

代码层面怎么写?直接写name= 'MAGM-f51c' 吗?


回答关注问题邀请回答
收藏
登录 后发表内容