<span id="mktg5"></span>

<i id="mktg5"><meter id="mktg5"></meter></i>

        <label id="mktg5"><meter id="mktg5"></meter></label>
        最新文章專題視頻專題問答1問答10問答100問答1000問答2000關(guān)鍵字專題1關(guān)鍵字專題50關(guān)鍵字專題500關(guān)鍵字專題1500TAG最新視頻文章推薦1 推薦3 推薦5 推薦7 推薦9 推薦11 推薦13 推薦15 推薦17 推薦19 推薦21 推薦23 推薦25 推薦27 推薦29 推薦31 推薦33 推薦35 推薦37視頻文章20視頻文章30視頻文章40視頻文章50視頻文章60 視頻文章70視頻文章80視頻文章90視頻文章100視頻文章120視頻文章140 視頻2關(guān)鍵字專題關(guān)鍵字專題tag2tag3文章專題文章專題2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章專題3
        問答文章1 問答文章501 問答文章1001 問答文章1501 問答文章2001 問答文章2501 問答文章3001 問答文章3501 問答文章4001 問答文章4501 問答文章5001 問答文章5501 問答文章6001 問答文章6501 問答文章7001 問答文章7501 問答文章8001 問答文章8501 問答文章9001 問答文章9501
        當(dāng)前位置: 首頁 - 科技 - 知識(shí)百科 - 正文

        通過在vue項(xiàng)目中使用ueditor(詳細(xì)教程)

        來源:懂視網(wǎng) 責(zé)編:小OO 時(shí)間:2020-11-27 19:42:35
        文檔

        通過在vue項(xiàng)目中使用ueditor(詳細(xì)教程)

        以vue-cli生成的項(xiàng)目為例。1.static文件夾下先放入ueditor文件。2.index.html添加如下代碼。<;script type=";text/javascript";charset=";utf-8";src=";static/ueditor/ueditor.config.js";>;<;/script>;<;script type=";text/javascript";charset=";utf-8";src=";static/ueditor/ueditor.all.min.js";>;<;/script>;。
        推薦度:
        導(dǎo)讀以vue-cli生成的項(xiàng)目為例。1.static文件夾下先放入ueditor文件。2.index.html添加如下代碼。<;script type=";text/javascript";charset=";utf-8";src=";static/ueditor/ueditor.config.js";>;<;/script>;<;script type=";text/javascript";charset=";utf-8";src=";static/ueditor/ueditor.all.min.js";>;<;/script>;。

        下面我就為大家分享一篇vue項(xiàng)目中使用ueditor的實(shí)例講解,具有很好的參考價(jià)值,希望對(duì)大家有所幫助。

        以vue-cli生成的項(xiàng)目為例

        1.static文件夾下先放入ueditor文件

        2.index.html添加如下代碼

        <script type="text/javascript" charset="utf-8" src="static/ueditor/ueditor.config.js"></script>
        <script type="text/javascript" charset="utf-8" src="static/ueditor/ueditor.all.min.js"></script>

        3.webpack.base.conf.js添加如下配置

        externals: {
         'UE': 'UE',
         },

        4.index.html中添加

        <script type="text/javascript">
         window.UEDITOR_HOME_URL = "/static/ueditor/";//配置路徑設(shè)定為UEditor所放的位置
        </script>

        5.editor組件

        <template>
         <p>
         <mt-button @click="geteditor()" type="danger">獲取</mt-button>
         <script id="editor" type="text/plain" style="width:1024px;height:500px;"></script>
         </p>
        </template>
        <script>
        const UE = require('UE');// eslint-disable-line
        export default {
         name: 'editorView',
         data: () => (
         {
         editor: null,
         }
         ),
         methods: {
         geteditor() {
         console.log(this.editor.getContent());
         },
         },
         mounted() {
         this.editor = UE.getEditor('editor');
         },
         destroyed() {
         this.editor.destroy();
         },
        };
        </script>
        <style>
        </style>

        上面是我整理給大家的,希望今后會(huì)對(duì)大家有幫助。

        相關(guān)文章:

        vue實(shí)現(xiàn)樹形菜單效果

        VUE重點(diǎn)問題總結(jié)

        p5.js入門教程之鍵盤交互

        聲明:本網(wǎng)頁內(nèi)容旨在傳播知識(shí),若有侵權(quán)等問題請(qǐng)及時(shí)與本網(wǎng)聯(lián)系,我們將在第一時(shí)間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com

        文檔

        通過在vue項(xiàng)目中使用ueditor(詳細(xì)教程)

        以vue-cli生成的項(xiàng)目為例。1.static文件夾下先放入ueditor文件。2.index.html添加如下代碼。<;script type=";text/javascript";charset=";utf-8";src=";static/ueditor/ueditor.config.js";>;<;/script>;<;script type=";text/javascript";charset=";utf-8";src=";static/ueditor/ueditor.all.min.js";>;<;/script>;。
        推薦度:
        標(biāo)簽: 步驟 使用 VUE
        • 熱門焦點(diǎn)

        最新推薦

        猜你喜歡

        熱門推薦

        專題
        Top
        主站蜘蛛池模板: 午夜免费1000部| 小日子的在线观看免费| 欧亚精品一区三区免费| 亚洲成a人片在线观看播放| 中文字幕亚洲免费无线观看日本| 亚洲国产精品无码久久一区二区| 最近免费字幕中文大全| 亚洲精品V欧洲精品V日韩精品 | 中字幕视频在线永久在线观看免费| 亚洲精品美女久久久久9999| 黄+色+性+人免费| 亚洲www在线观看| 卡1卡2卡3卡4卡5免费视频| 亚洲精品中文字幕| 亚洲AV永久无码精品一区二区国产 | 亚洲中文字幕乱码熟女在线| 成人午夜大片免费7777| 亚洲国产精品99久久久久久| 免费在线观看a级毛片| aa级毛片毛片免费观看久| 久久精品亚洲综合一品| 美丽的姑娘免费观看在线播放| 亚洲人成综合在线播放| 国产成人aaa在线视频免费观看| 色多多www视频在线观看免费| 国产精品亚洲片在线观看不卡| 182tv免费观看在线视频| 亚洲最大福利视频| 亚洲国产精品一区二区第一页免| 在线观看肉片AV网站免费| 亚洲av午夜精品无码专区| 免费亚洲视频在线观看| 中文字幕免费不卡二区| 亚洲天堂2016| 亚洲高清免费视频| 亚洲免费一级视频| 伊人久久国产免费观看视频| 激情内射亚洲一区二区三区| 国产精品自在自线免费观看| 国产一区二区免费视频| 亚洲欧美成人一区二区三区|