摘要: 使用async和await获取axios的数据的注意事项 确定正确使用 async function getInfo() { const res = await axios.get('http://example.com') return res.data } 上述代码等同于 async funct 阅读全文
posted @ 2023-11-02 10:56 浮生阁阁主 阅读(64) 评论(0) 推荐(0) 编辑
摘要: ## 使用WooCommerce的优惠劵功能 + 安装WooCommerce插件 + 选择woocommerce > setting > General > Enable coupons > Enable the use of coupon codes + 此时一般会在管理菜单栏中出现Marketi 阅读全文
posted @ 2023-08-11 10:57 浮生阁阁主 阅读(43) 评论(0) 推荐(0) 编辑
摘要: 跳过网站循环debugger + 在debugger处打断点后点击浏览器禁用断点后刷新页面 + 在debugger前行号处右键,选择一律不在此处暂停 + 添加Add conditional breakpoint 填写false + 替换文件 [参考文章](https://cloud.tencent. 阅读全文
posted @ 2023-08-10 15:29 浮生阁阁主 阅读(54) 评论(0) 推荐(0) 编辑
摘要: ## github API https://api.github.com/ ## HTML a标签 href属性 1. 阻止a标签跳转,点击执行函数 ```html 执行函数 ``` 2. href属性改变页面href ```html 主页 ``` 3. href属性链接到平级页面 ```html 阅读全文
posted @ 2023-08-08 17:18 浮生阁阁主 阅读(14) 评论(0) 推荐(0) 编辑
摘要: # wordpress 插件 woocommerce高级使用 ## 对界面结构进行修改: [参考 How To Edit Files](https://woocommerce.com/document/template-structure/#how-to-edit-files) ## 只修改部分fi 阅读全文
posted @ 2023-08-08 15:22 浮生阁阁主 阅读(80) 评论(0) 推荐(0) 编辑
摘要: 1. 使用php钩子函数增加自定义验证 ```php add_action('woocommerce_after_checkout_validation', function ($fields){ if ($fields['billing_phone'] && !preg_match('/^((\+ 阅读全文
posted @ 2023-07-27 18:43 浮生阁阁主 阅读(50) 评论(0) 推荐(0) 编辑
摘要: [github仓库地址](https://github.com/flatpickr/flatpickr) ## 全局设置默认参数 ```js import 'flatpickr' window.flatpickr.setDefaults({ dateFormat: 'Y-m-d H:i:S', ti 阅读全文
posted @ 2023-07-11 14:40 浮生阁阁主 阅读(40) 评论(0) 推荐(0) 编辑
摘要: 安装lxc sudo apt install lxc -y sudo apt-get install lxd 检验lxc是否安装成功 lxc --version 初始化 lxc init 查看本地所有容器 lxc list 更换镜像源 sudo lxc remote add tuna-images 阅读全文
posted @ 2023-02-13 15:43 浮生阁阁主 阅读(142) 评论(0) 推荐(0) 编辑
摘要: Vue与vue-i18n 包安装 npm i vue-i18n@8 Vue2使用8版本 Vue3使用默认版本 资源准备 新建文件夹lang 存放使用的语言文件 目录结构 scr lang en.js zh.js index.js 编辑文件 en.js: // 创建文件en.js const en = 阅读全文
posted @ 2023-02-13 15:04 浮生阁阁主 阅读(173) 评论(0) 推荐(0) 编辑
摘要: React错误记录 在React18中使用lazy报错 react.development.js:1363 Uncaught TypeError: Cannot read properties of undefined (reading 'then') at lazyInitializer (rea 阅读全文
posted @ 2022-11-07 19:31 浮生阁阁主 阅读(93) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示