而Kotlin則可以用下面的程式碼來新增extension function:. fun String.isNumeric(): Boolean { return this.matches("\\d+".
確定! 回上一頁