上一页 1 ··· 173 174 175 176 177 178 179 180 181 ··· 477 下一页
摘要: Sometimes you encounter a backend issue which seems to occur only on your computer, with a very specific sets of headers, cookies etc. Because of that 阅读全文
posted @ 2020-11-02 16:27 Zhentiw 阅读(135) 评论(0) 推荐(0)
摘要: In this lesson, we use CSS variables with calc and hsl to implement a rudimentary dark mode. We can do this by adjusting the lightness of our colors b 阅读全文
posted @ 2020-11-02 16:22 Zhentiw 阅读(144) 评论(0) 推荐(0)
摘要: In Kotlin, you are able to extend a class. Just like add prototype in Javascript. fun toSentenceCase(a: String): String { return a[0].toUpperCase() + 阅读全文
posted @ 2020-11-01 22:20 Zhentiw 阅读(106) 评论(0) 推荐(0)
摘要: import org.junit.jupiter.api.Assertions import org.junit.jupiter.api.Test import java.util.* class AgeCalculation() { fun getAge(dob: Calendar): Int { 阅读全文
posted @ 2020-11-01 22:00 Zhentiw 阅读(184) 评论(0) 推荐(0)
摘要: In Java, when you write code in try(...), if exception throw, the resource will be closed automactially: This is not necessary in Kotlin fun printFile 阅读全文
posted @ 2020-10-30 01:39 Zhentiw 阅读(195) 评论(0) 推荐(0)
摘要: In java, it requires you to handle the exception when you declaring and using the code: public class BoringJavaCode { public static Double divide(int 阅读全文
posted @ 2020-10-30 01:37 Zhentiw 阅读(190) 评论(0) 推荐(0)
摘要: List is not mutable, when you want to add data into list, you can do is: "adding data to a mutableList", then return a immutable list by calling toLis 阅读全文
posted @ 2020-10-30 01:20 Zhentiw 阅读(403) 评论(0) 推荐(0)
摘要: The part pseudo class allows consumers of a web component to manipulate certain key elements inside the Shadow DOM. In this lesson we will explore two 阅读全文
posted @ 2020-10-29 22:04 Zhentiw 阅读(135) 评论(0) 推荐(0)
摘要: document.getElementById("app").innerHTML = ` <h1>Hello Parcel!</h1> <div> <button id="plus">+</button> <button id="mius">-</button> </div> `; const ad 阅读全文
posted @ 2020-10-29 01:34 Zhentiw 阅读(155) 评论(0) 推荐(0)
摘要: (0..9).forEach(::println) (9 downTo 0).forEach(::println) (0 until 9).forEach(::println) // 0 to 8 (0..9 step 2).forEach(::println) ('A'..'F').forEach 阅读全文
posted @ 2020-10-29 01:04 Zhentiw 阅读(102) 评论(0) 推荐(0)
上一页 1 ··· 173 174 175 176 177 178 179 180 181 ··· 477 下一页