摘要: function sleep(interval:number) { return new Promise( resolve => { setTimeout(resolve, interval) }) } async function _query (name: any, id: any) { //a 阅读全文
posted @ 2022-12-20 11:17 zyip 阅读(255) 评论(0) 推荐(0) 编辑
摘要: import sql from 'mssql' async function query(sqlTxt:string){ let config = "Server=localhost,1433;Database=db1;User Id=sa;Password=sa;Trusted_Connectio 阅读全文
posted @ 2022-12-20 11:15 zyip 阅读(155) 评论(0) 推荐(0) 编辑
摘要: import puppeteer from 'puppeteer' const browser = await puppeteer.launch({headless: false}) const page = await browser.newPage() await page.setDefault 阅读全文
posted @ 2022-12-20 11:13 zyip 阅读(128) 评论(0) 推荐(0) 编辑
摘要: // import puppeteer from 'puppeteer' // https://github.com/SheetJS/sheetjs import reader from 'xlsx' const file = reader.readFile('D:\\doc\\名单.xlsx', 阅读全文
posted @ 2022-12-20 11:10 zyip 阅读(408) 评论(0) 推荐(0) 编辑
摘要: async function exec (adbCmd:string) { let adbPath = 'D:\\prog\\adb\\windows\\adb.exe' let cmdMsg = await new Promise((resolve, reject) => { const chil 阅读全文
posted @ 2022-12-20 11:08 zyip 阅读(54) 评论(0) 推荐(0) 编辑
摘要: # dev = connect_device("Android:///") connect_device("Android:///") dev = device() phone = '13800138000' msg = 'hello world' def sendMsg(phone, msg): 阅读全文
posted @ 2022-12-20 11:06 zyip 阅读(28) 评论(0) 推荐(0) 编辑