0
jsfiddle : catch되지 않은 구문 에러 : 이것은 내 코드 https://jsfiddle.net/50wL7mdz/77255/예기치 않은 토큰 수입 - 나는 jsfiddle에서 toastr 라이브러리 작업을하려고하지만이 오류가 계속
입니다 : 예기치 않은 토큰 수입
이 내 jsfiddle입니다 :
import VueToastr from '@deveodk/vue-toastr';
Vue.use(VueToastr, {
defaultPosition: 'toast-bottom-left',
defaultType: 'info',
defaultTimeout: 1000
});
new Vue({
el: '#app',
data: {
},
created(){
this.$toastr('success', 'it works!', 'Yeahh');
},
methods: {
}
})
이 라이브러리 참조입니다 : https://github.com/Deveodk/vue-toastr이
가져 오기 키워드 난을 작동하지 않습니다 njsfiddle?
덕분에이 작업을 수행 할 수 있습니다. 왜 당신이 내 라인'을 변경했는지 설명해 주시겠습니까? $ toastr ('성공', '작동!', '예'),'성공 방법? 'toastr.success ('Message', 'Title'); 그리고 왜 내 코드가'this '에 대해 작동하지 않는지 $ toastr ('성공 ','작동한다! ','예 '),' –
읽기 설명서는 https://www.npmjs.com/package/vue-toastr-2에 있습니다. 그리고 aprameters – Sajeetharan
하지만 여기 https://github.com/Deveodk/vue-toastr이 코드는'this. $ toastr ('success', 'it works!', 'Yeahh')'이 주어 졌을 때, 사용 가능? –