我正试着让你满意
vue-google-autocomplete
Django
nmp
http-vue-loader
问题是我什么都看不见,除了
VUE works
在网站上。
JSFIDLE
https://jsfiddle.net/zwjs8k75/7/
Vue.use(httpVueLoader);
new Vue({
el: '#app',
data: {
'testmessage': 'VUE works'
},
'components': {
'vue-google-autocomplete': 'url:https://cdn.jsdelivr.net/npm/vue-google-autocomplete@1.1.0/src/VueGoogleAutocomplete.vue'
},
methods: {
/**
* When the location found
* @param {Object} addressData Data of the found location
* @param {Object} placeResultData PlaceResult object
* @param {String} id Input container ID
*/
getAddressData: function(addressData, placeResultData, id) {
this.address = addressData;
}
}
})