- JSONP使用<script>實現跨域get請求
- 隨輸入的不同,請求youtube搜尋會自動跳出的相關熱門搜尋關鍵字
- 拆解url
- q=... (搜尋詞
- callback=... (callback fucntion
- 不確定JSONP請求和callback寫在哪
- 都寫在index.html or 都寫在同一個js檔案 or 還是分開寫在不同js檔案
- 最後決定JSONP寫在index.html; callback寫在callback.js
JSONP跨域請求:youtbe搜索框熱門搜尋關鍵字
JSONP跨域請求:youtbe搜索框熱門搜尋關鍵字