摘要: 配置contentful 1. 创建免费账号 2. 根据提示进行操作, Content Model - 创建页面属性模板 (personalWebsite) content entry - 根据属性模板,添加内容,最后发布 API call - 发布后,可以使用Graph QL 或者 REST Ap 阅读全文
posted @ 2023-02-22 03:45 鑫仔Alan 阅读(103) 评论(0) 推荐(0) 编辑
摘要: Set up the basic Coveo: Create source - source coveo_test_index. (Select whatever way you want to get your source) 2. Create a query pipeline 1). Over 阅读全文
posted @ 2023-11-14 06:02 鑫仔Alan 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 正常安装是: yarn add node-sass 直接安装出现报错 例如: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (93) 或者是 Node 阅读全文
posted @ 2022-03-03 04:13 鑫仔Alan 阅读(186) 评论(0) 推荐(0) 编辑
摘要: javascript 其本身是一门 单线程的 非阻塞的 脚本语言,单线程意味着,javascript代码在执行的任何时候,都只有一个主线程来处理所有的任务,非阻塞靠的就是 event loop(事件循环) 但是浏览器确实多线程的,所以才会可以打开多个标签页,从而打开不同的页面。 Event Loop 阅读全文
posted @ 2022-03-03 01:20 鑫仔Alan 阅读(34) 评论(0) 推荐(0) 编辑
摘要: When we test asynchronous, we use Axios to get the response. install the Axios npm i axios Cause we already config the babel for presets, so we can di 阅读全文
posted @ 2022-02-18 11:12 鑫仔Alan 阅读(22) 评论(0) 推荐(0) 编辑
摘要: Note: Please check the prev blog to see the jest configuration. calculator.js const plus = (a, b) => { return a + b } const subtract = (a, b) => { ret 阅读全文
posted @ 2022-02-18 10:32 鑫仔Alan 阅读(25) 评论(0) 推荐(0) 编辑
摘要: Jest is a delightful JavaScript Testing Framework with a focus on simplicity. It works with projects using: Babel, TypeScript, Node, React, Angular, V 阅读全文
posted @ 2022-02-18 00:20 鑫仔Alan 阅读(24) 评论(0) 推荐(0) 编辑
摘要: Falsy VS Truthy Value and == VS Falsy values: undefined, null, 0, '', NaN Truthy values: Not falsy values var height; if (height) { console.log('Varia 阅读全文
posted @ 2022-01-23 23:54 鑫仔Alan 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 1.1 cross-env是什么 运行跨平台设置和使用环境变量的脚本 1.2 出现原因 当您使用 NODE_ENV=production, 来设置环境变量时,大多数 Windows 命令提示将会阻塞(报错)。(异常是Windows上的Bash,它使用本机Bash。)换言之,Windows 不支持 N 阅读全文
posted @ 2021-08-23 14:11 鑫仔Alan 阅读(330) 评论(0) 推荐(0) 编辑
摘要: class Person { /** * TS 可以再属性前增加属性的修饰符 * public 修饰的属性可以再任意位置访问(修改)默认值 * private 私有属性,私有属性只能在类内部进行访问和修改 */ public title: string; // 不加前缀其实就是public priv 阅读全文
posted @ 2021-08-06 17:10 鑫仔Alan 阅读(103) 评论(0) 推荐(0) 编辑