簡體   English   中英

僅在IE11上的VUE JS模板編譯錯誤

[英]VUE JS template compiling error just on IE11

我面臨一個奇怪的問題,需要4到5個小時才能解決,但仍然找不到解決方案。 我正在得到的錯誤是我的代碼在所有瀏覽器的chrome和firefox safari上都可以正常工作,但是當我在IE11上運行它時,會拋出此錯誤:

[Vue警告]:編譯模板時出錯: <div class="floating-chat lh-2-0" id="chat-app"> &nbsp;&nbsp; <span class="title pull-lef col-md-12"> <span class="chat-notification-icon" v-if="this.unreadChatOfUsersCount.count > 0"> {{this.unreadChatOfUsersCount.count}} </span> Messaging </span> <div class="pull-righ col-md-"> </div> <div class="floating-chat lh-2-0" id="chat-app"> &nbsp;&nbsp; <span class="title pull-lef col-md-12"> <span class="chat-notification-icon" v-if="this.unreadChatOfUsersCount.count > 0"> {{this.unreadChatOfUsersCount.count}} </span> Messaging </span> <div class="pull-righ col-md-"> </div>

請有人給我一個解決方案。

我將所有方法從method(){}為method: function(){}也添加了polyfill但無法達到結果。

這是我的代碼的屏幕截圖

我的項目有這樣的問題。 如果您在組件模板中使用IE不兼容的代碼,則可能發生這種情況。

對我來說,這是href屬性中的字符串插值。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM