正規表達式撰寫方法有兩種
var re = /ab+c/; => 在 script 載入時會被編譯,當正規表達式為定值時,使用此方法可獲得較佳效能。
var re = new RegExp('ab+c'); => 即時編譯正則表達式,當模式會異動、事先未知匹配模式、或者您將從其他地方取得時,使用建構子函數將較為合適。
線上練習網站
https://regex101.com/
regex101的切換語系
hsiaomingcheng changed a year agoView mode Like Bookmark
mkdir(make directory,建立目錄)
當你需要建立一個資料夾的時候,就可以輸入 mkdir test
這樣就會建立一個名為test的資料夾
建立文檔
echo This is some text > myfile.txt
echo > test2.txt
第一個會建立一個文檔,檔案名稱為myfile副檔名為txt,且裡面會有一行This is some text的文字
hsiaomingcheng changed 4 years agoView mode Like Bookmark
IPHONEOS_DEPLOYMENT_TARGET is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99
上網google,會得到很多類似下面的這種解答,但是並不是替換後存檔就有用。
換上後請進到專案資料夾下的ios folder,然後下Pod install
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '8.0'
hsiaomingcheng changed 4 years agoView mode Like Bookmark