swan-custom-component>view>千萬不要用下劃線作為自定義組件名,百度小程序開發(fā),網(wǎng)絡(luò)投票系統(tǒng),微信公眾號投票,微信公眾號小程序,抖音小程序,百度小程序,微信公眾號開發(fā),企業(yè)網(wǎng)站建設(shè)" /> swan-custom-component>view>千萬不要用下劃線作為自定義組件名,百度小程序開發(fā),深山工作室提供網(wǎng)絡(luò)投票系統(tǒng)、微信公眾號投票、微信公眾號小程序、抖音小程序、百度小程序、微信公眾號開發(fā)、企業(yè)網(wǎng)站建設(shè)等相關(guān)網(wǎng)絡(luò)程序定制開發(fā)。" />

99热热热_国产成人自拍一区_欧美一级网站_99热在线播放_国产精品乱码一区二区三区_久久精品国产一区二区三区

留言板

電腦留言板 手機(jī)留言板 微信留言板 多模板 自適應(yīng)
我們提供企業(yè)留言板、留言信箱程序定制等服務(wù)
留言板留言板V7.22
免費(fèi)無限制開源多樣式自適應(yīng)手機(jī)版
立即免費(fèi)下載
更新于 09月30日
贊助打賞深山
讓免費(fèi)服務(wù)走的更遠(yuǎn)

百度小程序開發(fā)第一坑tcomponent自定義組件命名坑Compile san component failed. . [SAN ERROR] ROOT>swan-custom-component>view>千萬不要用下劃線作為自定義組件名

在給組件命名的時(shí)候我們大多數(shù)的時(shí)候命名字母全小寫且包含一個(gè)連字符,但是有的時(shí)候我們也是用單詞首字母大寫的方式實(shí)現(xiàn)的組件命名
如果當(dāng)我們需要將組件渲染到dom上的時(shí)候強(qiáng)烈建議使用全部字母小寫且有連接符連接的命名
在html中是大小寫不敏感的,使用全小寫且連接符連接會幫助我們與當(dāng)前或者未來的元素沖突
百度自定義組件名不能用下劃線


正確示例

"navigationBarTitleText": "智能小程序示例",
"usingComponents": {
"qwbmlist": "/components/searchInput/qwbmlist",
"qwbm-list": "/components/searchList/qwbmlist",
"qwbm_list": "/components/searchList/qwbmlist", //這行就是有問題的,因?yàn)橛靡幌聞澗€
}
注意:組件的文件名可以用駝峰命名,但不能用中劃線
注意:組件名只能是全小寫加中劃線,不能用駝峰命名和下劃線

index 頁面引入
<qwbmlist></qwbmlist>
<qwbm-list></qwbm-list>
<qwbm_list></qwbm_list>    //這行就是有問題的,因?yàn)橛靡幌聞澗€


百度小程序開發(fā)第一坑tcomponent自定義組件命名坑Compile san component failed. . [SAN ERROR] ROOT swan-custom-component view 千萬不要用下劃線作為自定義組件名


Compile san component failed.
[SAN ERROR] ROOT>swan-custom-component>view>qwbm's close tag has attributes
Error: Compile san component failed.
[SAN ERROR] ROOT>swan-custom-component>view>qwbm's close tag has attributes
at X (file:///C:/Users/Administrator/AppData/Roaming/%E7%99%BE%E5%BA%A6%E5%BC%80%E5%8F%91%E8%80%85%E5%B7%A5%E5%85%B7/cli/vendor/swan-core/3.300.10/slaves/index.js:1:49332)
at Object.Ye [as parseComponentTemplate] (file:///C:/Users/Administrator/AppData/Roaming/%E7%99%BE%E5%BA%A6%E5%BC%80%E5%8F%91%E8%80%85%E5%B7%A5%E5%85%B7/cli/vendor/swan-core/3.300.10/slaves/index.js:1:72922)
at V (file:///C:/Users/Administrator/AppData/Roaming/%E7%99%BE%E5%BA%A6%E5%BC%80%E5%8F%91%E8%80%85%E5%B7%A5%E5%85%B7/cli/vendor/swan-core/3.300.10/slaves/index.js:1:382573)
at B (file:///C:/Users/Administrator/AppData/Roaming/%E7%99%BE%E5%BA%A6%E5%BC%80%E5%8F%91%E8%80%85%E5%B7%A5%E5%85%B7/cli/vendor/swan-core/3.300.10/slaves/index.js:1:382868)
at U (file:///C:/Users/Administrator/AppData/Roaming/%E7%99%BE%E5%BA%A6%E5%BC%80%E5%8F%91%E8%80%85%E5%B7%A5%E5%85%B7/cli/vendor/swan-core/3.300.10/slaves/index.js:1:382979)
at p (file:///C:/Users/Administrator/AppData/Roaming/%E7%99%BE%E5%BA%A6%E5%BC%80%E5%8F%91%E8%80%85%E5%B7%A5%E5%85%B7/cli/vendor/swan-core/3.300.10/slaves/index.js:1:830845)
at file:///C:/Users/Administrator/AppData/Roaming/%E7%99%BE%E5%BA%A6%E5%BC%80%E5%8F%91%E8%80%85%E5%B7%A5%E5%85%B7/cli/vendor/swan-core/3.300.10/slaves/index.js:1:831663
at a.getComponentType (file:///C:/Users/Administrator/AppData/Roaming/%E7%99%BE%E5%BA%A6%E5%BC%80%E5%8F%91%E8%80%85%E5%B7%A5%E5%85%B7/cli/vendor/swan-core/3.300.10/slaves/index.js:1:831922)
at ke (file:///C:/Users/Administrator/AppData/Roaming/%E7%99%BE%E5%BA%A6%E5%BC%80%E5%8F%91%E8%80%85%E5%B7%A5%E5%85%B7/cli/vendor/swan-core/3.300.10/slaves/index.js:1:60743)
at a.<anonymous> (file:///C:/Users/Administrator/AppData/Roaming/%E7%99%BE%E5%BA%A6%E5%BC%80%E5%8F%91%E8%80%85%E5%B7%A5%E5%85%B7/cli/vendor/swan-core/3.300.10/slaves/index.js:1:80346)
at a.attach (D:\Program Files\swan-ide-gui\resources\app\build-3.33.1\app.asar\node_modules\@ecomfe\san-devhook\dist\san_devhook.js:2019:27)
at e.value (file:///C:/Users/Administrator/AppData/Roaming/%E7%99%BE%E5%BA%A6%E5%BC%80%E5%8F%91%E8%80%85%E5%B7%A5%E5%85%B7/cli/vendor/swan-core/3.300.10/slaves/index.js:1:718106)
at e.value (file:///C:/Users/Administrator/AppData/Roaming/%E7%99%BE%E5%BA%A6%E5%BC%80%E5%8F%91%E8%80%85%E5%B7%A5%E5%85%B7/cli/vendor/swan-core/3.300.10/slaves/index.js:1:715675)
at file:///C:/Users/Administrator/AppData/Roaming/%E7%99%BE%E5%BA%A6%E5%BC%80%E5%8F%91%E8%80%85%E5%B7%A5%E5%85%B7/cli/vendor/swan-core/3.300.10/slaves/index.js:1:712413
at file:///C:/Users/Administrator/AppData/Roaming/%E7%99%BE%E5%BA%A6%E5%BC%80%E5%8F%91%E8%80%85%E5%B7%A5%E5%85%B7/cli/vendor/swan-core/3.300.10/slaves/index.js:1:341978
at Array.forEach (<anonymous>)
ext msg: {}
(anonymous) @ D:\Program Files\swan-ide-gui\resources\app\build-3.33.1\app.asar\dist\extensions\simulator\src\webview\preloads\master\events.js:1
(anonymous) @ D:\Program Files\swan-ide-gui\resources\app\build-3.33.1\app.asar\dist\src\services\event\renderer\event-map.js:1
emit @ events.js:203
onMessage @ electron/js2c/renderer_init.js:2422
D:\Program Files\swan-ide-gui\resources\app\build-3.33.1\app.asar\dist\extensions\simulator\src\webview\preloads\master\events.js:1

error from page:

D:\Program Files\swan-ide-gui\resources\app\build-3.33.1\app.asar\dist\extensions\simulator\src\webview\preloads\master\events.js:1 Slave attached error in _transitPageAttach function.
Cannot read property 'tagName' of undefined
TypeError: Slave attached error in _transitPageAttach function.
Cannot read property 'tagName' of undefined
at U (file:///C:/Users/Administrator/AppData/Roaming/%E7%99%BE%E5%BA%A6%E5%BC%80%E5%8F%91%E8%80%85%E5%B7%A5%E5%85%B7/cli/vendor/swan-core/3.300.10/slaves/index.js:1:383202)
at p (file:///C:/Users/Administrator/AppData/Roaming/%E7%99%BE%E5%BA%A6%E5%BC%80%E5%8F%91%E8%80%85%E5%B7%A5%E5%85%B7/cli/vendor/swan-core/3.300.10/slaves/index.js:1:830845)
at file:///C:/Users/Administrator/AppData/Roaming/%E7%99%BE%E5%BA%A6%E5%BC%80%E5%8F%91%E8%80%85%E5%B7%A5%E5%85%B7/cli/vendor/swan-core/3.300.10/slaves/index.js:1:831663
at a.getComponentType (file:///C:/Users/Administrator/AppData/Roaming/%E7%99%BE%E5%BA%A6%E5%BC%80%E5%8F%91%E8%80%85%E5%B7%A5%E5%85%B7/cli/vendor/swan-core/3.300.10/slaves/index.js:1:831922)
at ke (file:///C:/Users/Administrator/AppData/Roaming/%E7%99%BE%E5%BA%A6%E5%BC%80%E5%8F%91%E8%80%85%E5%B7%A5%E5%85%B7/cli/vendor/swan-core/3.300.10/slaves/index.js:1:60743)
at a.<anonymous> (file:///C:/Users/Administrator/AppData/Roaming/%E7%99%BE%E5%BA%A6%E5%BC%80%E5%8F%91%E8%80%85%E5%B7%A5%E5%85%B7/cli/vendor/swan-core/3.300.10/slaves/index.js:1:80346)
at a.attach (D:\Program Files\swan-ide-gui\resources\app\build-3.33.1\app.asar\node_modules\@ecomfe\san-devhook\dist\san_devhook.js:2019:27)
at e.value (file:///C:/Users/Administrator/AppData/Roaming/%E7%99%BE%E5%BA%A6%E5%BC%80%E5%8F%91%E8%80%85%E5%B7%A5%E5%85%B7/cli/vendor/swan-core/3.300.10/slaves/index.js:1:718106)
at e.value (file:///C:/Users/Administrator/AppData/Roaming/%E7%99%BE%E5%BA%A6%E5%BC%80%E5%8F%91%E8%80%85%E5%B7%A5%E5%85%B7/cli/vendor/swan-core/3.300.10/slaves/index.js:1:715675)
at file:///C:/Users/Administrator/AppData/Roaming/%E7%99%BE%E5%BA%A6%E5%BC%80%E5%8F%91%E8%80%85%E5%B7%A5%E5%85%B7/cli/vendor/swan-core/3.300.10/slaves/index.js:1:712413
at file:///C:/Users/Administrator/AppData/Roaming/%E7%99%BE%E5%BA%A6%E5%BC%80%E5%8F%91%E8%80%85%E5%B7%A5%E5%85%B7/cli/vendor/swan-core/3.300.10/slaves/index.js:1:341978
at Array.forEach (<anonymous>)
at HTMLDocument.<anonymous> (file:///C:/Users/Administrator/AppData/Roaming/%E7%99%BE%E5%BA%A6%E5%BC%80%E5%8F%91%E8%80%85%E5%B7%A5%E5%85%B7/cli/vendor/swan-core/3.300.10/slaves/index.js:1:341958)
at D:\Program Files\swan-ide-gui\resources\app\build-3.33.1\app.asar\dist\extensions\simulator-swan-api\src\webview\utils\message.js:1:279
at D:\Program Files\swan-ide-gui\resources\app\build-3.33.1\app.asar\dist\extensions\simulator-swan-api\src\webview\slave\index.js:1:1111
at EventEmitter.<anonymous> (D:\Program Files\swan-ide-gui\resources\app\build-3.33.1\app.asar\dist\src\services\event\renderer\event-map.js:1:1116)
ext msg: {"isWhiteScreen":true}
前一頁:暫時(shí)沒有數(shù)據(jù)
掃描查看手機(jī)留言板效果
留言板演示下載留言板程序
點(diǎn)擊在線咨詢
手機(jī) 13961347334
Q Q 565449214
郵箱 565449214@qq.com
主站蜘蛛池模板: 天堂二区| 黄色免费电影网站 | 色视频成人在线观看免 | 一级毛片免费播放视频 | 国产在线精品二区 | 99久久久久久久久 | 日韩成人黄色 | 久久91精品国产91久久久 | 美国av免费看 | 亚洲男人在线 | 亚洲综合视频网 | 日韩视频免费在线观看 | 中文有码在线观看 | 天天干夜夜 | 免费美女毛片 | 国产精品羞羞答答 | 日韩精品视频免费 | 亚洲精品在线免费 | 日韩图色 | 国产精品一级在线 | 天天干夜夜欢 | 91高清国产 | 欧美激情一区二区三区在线 | 中文字幕一二三 | 99久久精品久久久久久动态片 | 女人另类xoxoo | 亚洲免费国产 | 91精品综合久久久久久 | 国产成人免费av一区二区午夜 | 欧美精品一区二区三区视频 | 高清无套内精线观看456 | 91亚色在线观看 | 天天干夜夜操 | 夜夜草天天干 | 日韩精品99久久久久中文字幕 | 日日干日日操日日射 | 国产精品一区二区三区在线 | 日本欧美在线 | 色综合一区 | 国产精品视频在线播放 | 一区影院|