摘要:
pom.xml: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</artifactId> </dependency> <dependency> <gr 阅读全文
posted @ 2020-11-05 21:06
Zhentiw
阅读(126)
评论(0)
推荐(0)
摘要:
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
阅读(80)
评论(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
阅读(153)
评论(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
阅读(82)
评论(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
阅读(108)
评论(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
阅读(167)
评论(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
阅读(91)
评论(0)
推荐(0)

浙公网安备 33010602011771号