ZCDC_Ren

Results 139 issues of ZCDC_Ren

这个单片机上也能跑把

希望能结合websocket

把运行爬虫和发布数据独立出来

feature

{"ruleConfig":"{\"config\":{\"chromePath\":\"C:\\\\Program Files (x86)\\\\Google\\\\Chrome\\\\Application\\\\chrome.exe\",\"params\":[{\"name\":\"title\",\"param\":\".detailHead > .detailHead__title.fl.clearfix > p\",\"attr\":\"\",\"note\":\"标题\",\"value\":\"政务核芯中侨中心C座92平正对电梯口精装\"},{\"name\":\"phone\",\"param\":\".infoDetail.fr > div.adviser > div.clearfix.btnBar > div\",\"attr\":\"telno\",\"note\":\"电话\",\"value\":\"13505514973\"},{\"name\":\"name\",\"param\":\".infoDetail.fr > div.adviser > div.clearfix.adviserPs > div.fl > div > div.adviserName.fl\",\"attr\":\"\",\"note\":\"姓名\",\"value\":\"王先生(个人)\"},{\"name\":\"price\",\"param\":\".infoDetail.fr > div.infoDetail__title\",\"attr\":\"\",\"note\":\"价格\",\"value\":\"2元/天*平方米年付\"},{\"name\":\"size\",\"param\":\".infoDetail.fr > .infoDetail__content > div:nth-child(2) >...

templateTask

### Pre-flight checklist - [X] I have read the [contribution documentation](https://github.com/electron/forge/blob/main/CONTRIBUTING.md) for this project. - [X] I agree to follow the [code of conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project uses. - [X]...

bug
import
blocked/needs-repro

使用容器来避免环境安装和冲突问题 ```bash podman run --rm -v $(pwd):/src trzeci/emscripten emcc -o ./appWASM.js ./emscripten.cpp -O3 -s ALLOW_MEMORY_GROWTH=1 -s USE_WEBGL2=1 -s FULL_ES3=1 -s WASM=1 -s NO_EXIT_RUNTIME=1 -std=c++1z -s "EXTRA_EXPORTED_RUNTIME_METHODS=['ccall', 'cwrap']" ```

JS
Linux

```js // 获取屏幕分辨率 ipcMain.handle('getScreenPx', () => { const { size, scaleFactor } = screen.getPrimaryDisplay() return { width: size.width * scaleFactor, height: size.height * scaleFactor } }) ```

Electron

通过主进程来进行全屏操作 ### 1. preload中暴露通信方法 ```js const { contextBridge, ipcRenderer } = require('electron') contextBridge.exposeInMainWorld('electron', { doFull: (id) => { ipcRenderer.invoke('doFull', id) } }) ``` ### 2. 主进程中接收通信消息, executeJavaScript方法第二个参数传true, 可去除限制, 从而进行全屏api调用 ```js...

Electron

```js function gcd(a, b) { // 辗转相除法求最大公约数 while (b !== 0) { let t = b; b = a % b; a = t; } return a; } function simplifyRatio(num1,...

JS