From f59f7cf214c25574ba56c75f504a6f2a79ff1017 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B9=E5=90=89=E6=AC=A2?= Date: Sun, 8 Apr 2018 16:11:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=A8=A1=E6=9D=BF=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E7=94=A8=E4=BE=8B=E7=94=A8=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fangija-zsyf/views/component/component.js | 15 +++++++++++++ .../views/component/componenttest.html | 21 +++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 fangija-zsyf/views/component/component.js create mode 100644 fangija-zsyf/views/component/componenttest.html 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 @@ + + + + + + + +
+ +
+ + + + + +