2024-04-11 14:58
puppeteer的获取浏览器上下文Evaluate方法,之前一直以为无法传递参数进去,后来发现用法不对。。
const three = await page.evaluate(
(a, b) => {
return 1 + 2;
},
1,
2
);
2024-04-09 16:19
chrome浏览器 复制功能
navigator.clipboard.writeText(textToCopy)
.then(() => {
this.setState({ copySuccess: 'Copied!' });
})
.catch((err) => {
console.error('Failed to copy!', err);
});
2024-04-03 14:30
fromCharCode 解析unicode - charCodeAt 转为unicode
2024-04-02 11:08
antd的Modal的footer有个有意思的现象,当需要动态渲染时,官方提供的案例需要传递两个Button,但是有时我只想传递默认的值即不需要写Button 类似于=》footer={step === 3 ? null : Modal.footer} 或者也可以把Modal,footer换成Form.footer,这种都是可以的 少些了一些代码
2024-03-19 21:44
https://www.xfyun.cn/services/online_tts_long#anchor1495411 - 讯飞文字转语音
2024-03-19 10:40
flutter让我养成了末尾加分号的好习惯...它是真会报错啊!