久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      vue.js怎么引入外部js

      vue.js引入外部js的方法:1、使用外部文件【config.js】,代碼為【function formatXml(text){return text}】;2、引入【config.js】里面的常量和方法。

      vue.js怎么引入外部js

      本教程操作環(huán)境:windows7系統(tǒng)、Vue2.9.6版,該方法適用于所有品牌電腦。

      【相關(guān)免費(fèi)文章推薦:vue.js】

      vue.js引入外部js的方法:

      1、外部文件config.js

      第一種寫法

      //常量的定義   const config = {  baseurl:‘http://172.16.114.5:8088/MGT2‘  } //函數(shù)的定義 function formatXml(text) {   return text  } //導(dǎo)出 {常量名、函數(shù)名} export {config,formatXml}

      第二種寫法

      //常量的定義 export const config = {    baseurl:‘http://172.16.114.5:8088/MGT2‘ }  //函數(shù)的定義    export function formatXml(text) {  return text }

      2、引入config.js里面的常量和方法

        import {config,formatXml} from ‘../config‘//記得帶上{}花括號

      相關(guān)免費(fèi)學(xué)習(xí)推薦:javascript(視頻)

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號