Category: Uncategorized
localhost變https
安裝brew之後,參考這篇文章
Use HTTPS for local development | Articles | web.dev

在package.json的start加這行就有https惹
HTTPS=true SSL_CRT_FILE=~/localhost.pem SSL_KEY_FILE=~/localhost-key.pem
macOS必備
mac設定
記得要用一條線把手機跟電腦連起來!!不要插錯洞了!!插到充電的沒有用!!!!
一插上去在Safari馬上就可以看到惹啦!!!!!!!!!
更新:
最重要的是要打開Air Drop,好像要Sign in with Apple才能打開

一打開馬上就能看到這個驚喜的咚咚

將safari設定成打dev tools

把最下面的 Show features for web developers 打勾,就可以開手機模擬器

打開airdrop



這樣可以看手機打開的safari頁面
打開Xcode,點menu的window,讓它跟手機連結,手機也要打開developer mode


iphone連windows
把iphone用USB插入Windows電腦

windows => mac 鍵盤設定
透過「啟動切換」在 Windows 中使用 Apple 鍵盤 – Apple 支援 (台灣)
不能打波浪符號:


原來是要點這個…然後要點擊shift旁邊的鍵(例如我的外接鍵盤的左邊的shift的右邊是z,右邊的shift的左邊是?符號鍵…
我本來以為那是空白鍵或特殊鍵,看不懂操作說明~
有成功按到就一直往下就好了,就可以成功打波浪符號惹~
Webstorm
- 同時編輯一樣的字
Edit Text in Multiple Places at Once
使用快捷鍵 alt + J (windows) 選中就可以一起編輯