diff --git a/fangija-zsyf/views/component/component.js b/fangija-zsyf/views/component/component.js new file mode 100644 index 0000000..3f2ee9f --- /dev/null +++ b/fangija-zsyf/views/component/component.js @@ -0,0 +1,15 @@ +Vue.component('my-component', { + template: ` +
+

ddd{{message}}

+
+ `, + data: function(){ + return {message: 'helloa'} + }, + methods: { + show() { + alert(); + } + } +}) \ No newline at end of file diff --git a/fangija-zsyf/views/component/componenttest.html b/fangija-zsyf/views/component/componenttest.html new file mode 100644 index 0000000..d4f71e3 --- /dev/null +++ b/fangija-zsyf/views/component/componenttest.html @@ -0,0 +1,21 @@ + + + + + + + +
+ +
+ + + + + +