亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

Uncaught ReferenceError: require is not defined

Uncaught ReferenceError: require is not defined

atomweapon 2017-05-24 00:13:23
每次鏈接 var?marked?=?require('marked'); marked.setOptions({ ????renderer:?new?marked.Renderer(), ????gfm:?true, ????tables:?true, ????breaks:?true, ????pedantic:?true, ????sanitize:?true, ????smartLists:?true, ????smartypants:?true });都是這個問題Uncaught ReferenceError: require is not defined 到底怎么辦啊。網上搜的很少。
查看完整描述

3 回答

?
這人不懶_學習刻苦

TA貢獻2條經驗 獲得超1個贊

欠定義了。建議逐一檢查

查看完整回答
反對 回復 2017-05-24
?
慕斯4282661

TA貢獻2條經驗 獲得超0個贊

不好意思 我看了一臉懵比??

查看完整回答
反對 回復 2017-05-24
?
__innocence

TA貢獻313條經驗 獲得超208個贊

應該是要引入require.js吧

查看完整回答
反對 回復 2017-05-24
  • atomweapon
    atomweapon
    引入了沒用
  • __innocence
    __innocence
    引用requirejs的時候需要設置data-main入口文件,還需要在入口文件里進行一些配置
  • 3 回答
  • 0 關注
  • 16671 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號