上一页 1 ··· 170 171 172 173 174 175 176 177 178 ··· 498 下一页
摘要: We want to only freeze the private variable when we get it and set it: class Cart { #items; constructor(items = []) { this.value = items; } set value( 阅读全文
posted @ 2020-11-05 20:04 Zhentiw 阅读(89) 评论(0) 推荐(0)
摘要: Morden Javascript allows us to write private and static class memebers. To do this, we need to install babel plugins: First, let see "static member": 阅读全文
posted @ 2020-11-05 19:57 Zhentiw 阅读(155) 评论(0) 推荐(0)
摘要: Let's see two code snippets which has same functionalities: No1: function Cart(items = []) { this.items = Object.freeze(items); this.add = item => { c 阅读全文
posted @ 2020-11-05 18:19 Zhentiw 阅读(84) 评论(0) 推荐(0)
摘要: https://epicreact.dev/css-variables/ Code body[data-theme='light'] { --colors-primary: deeppink; --colors-background: white; } body[data-theme='dark'] 阅读全文
posted @ 2020-11-05 03:56 Zhentiw 阅读(126) 评论(0) 推荐(0)
摘要: Structure: tempalates/seatBooking.html: <!DOCTYPE html> <html lang="en" xmlns:th="http://www.thymeleaf.org"> <head> <meta charset="UTF-8"> <title>com. 阅读全文
posted @ 2020-11-05 03:30 Zhentiw 阅读(175) 评论(0) 推荐(0)
摘要: In Java, you can use Autowired to init the service: @Autowired TheaterService theaterService In kotlin, it is different, you need to use 'lateinit var 阅读全文
posted @ 2020-11-05 03:17 Zhentiw 阅读(102) 评论(0) 推荐(0)
摘要: Many scenarios involve one task happening after another has completed. This lesson walks you through setting up "steps" which trigger one after anothe 阅读全文
posted @ 2020-11-04 20:09 Zhentiw 阅读(88) 评论(0) 推荐(0)
摘要: Backing bean: A typical JavaServer Faces application includes one or more backing beans, each of which is a type of JavaServer Faces managed bean that 阅读全文
posted @ 2020-11-04 01:55 Zhentiw 阅读(79) 评论(0) 推荐(0)
摘要: Install devtool: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <scope>runtime</scope> <option 阅读全文
posted @ 2020-11-04 01:40 Zhentiw 阅读(112) 评论(0) 推荐(0)
摘要: ou can create diffs in markdown to show what has changed in a code snippet. I use this in blog posts to highlight changed lines for readers. This work 阅读全文
posted @ 2020-11-04 01:13 Zhentiw 阅读(83) 评论(0) 推荐(0)
上一页 1 ··· 170 171 172 173 174 175 176 177 178 ··· 498 下一页