import $ from 'jquery'. (5)然後npm run dev 就可以在頁面中直接用$ 了. 2、vue元件引用外部js的方法. 專案結構如圖: content元件程式碼:.
確定! 回上一頁