上一页 1 ··· 188 189 190 191 192 193 194 195 196 ··· 494 下一页
摘要: JavaScript numbers and CSS hexadecimal numbers don't play very well together. You can solve this with a conversion function that takes the number, con 阅读全文
posted @ 2020-07-27 16:09 Zhentiw 阅读(92) 评论(0) 推荐(0)
摘要: When express App run syncronous code: app.get("/test", (req, res) => { throw new Error("Oh no! The world has ended!"); }); Those code works fine. But 阅读全文
posted @ 2020-07-27 16:05 Zhentiw 阅读(181) 评论(0) 推荐(0)
摘要: If we have just one feature, the error is big, preformance is not good; but if we have too many features selected then it might be overfitting. So we 阅读全文
posted @ 2020-07-23 22:05 Zhentiw 阅读(160) 评论(0) 推荐(0)
摘要: Just like the title h1 { font-size: 5vw; } Make font responsive to view width 阅读全文
posted @ 2020-07-23 19:06 Zhentiw 阅读(115) 评论(0) 推荐(0)
摘要: Garuded Transitions, it prevents the state goes from current sate to its target state is condition is falsy. const machine = createMachine( { initial: 阅读全文
posted @ 2020-07-22 20:50 Zhentiw 阅读(152) 评论(0) 推荐(0)
摘要: import { createMachine, assign, interpret } from "xstate"; const elBox = document.querySelector("#box"); const elBody = document.body; const assignPoi 阅读全文
posted @ 2020-07-21 18:46 Zhentiw 阅读(197) 评论(0) 推荐(0)
摘要: Right now, we're getting the ID route parameter off the of the parent route. This is because we want the info and items components to use the ID of th 阅读全文
posted @ 2020-07-21 15:43 Zhentiw 阅读(214) 评论(0) 推荐(0)
摘要: Using the https://developer.mozilla.org/en-US/docs/Web/API/Web_Speech_API(Web Speech API) it is possible to use speech synthesis in the browser withou 阅读全文
posted @ 2020-07-21 15:35 Zhentiw 阅读(173) 评论(0) 推荐(0)
摘要: We have a message app: function App() { const messageDisplayRef = React.useRef() .... const scrollToTop = () => messageDisplayRef.current.scrollToTop( 阅读全文
posted @ 2020-07-21 15:26 Zhentiw 阅读(332) 评论(0) 推荐(0)
摘要: Let's we want to keep tracking how many times on element was click inside Machine model. We can use 'context' & 'assign' function. import { assign, cr 阅读全文
posted @ 2020-07-20 22:36 Zhentiw 阅读(192) 评论(0) 推荐(0)
上一页 1 ··· 188 189 190 191 192 193 194 195 196 ··· 494 下一页