質問編集履歴

1

変更箇所のソースコード

2018/02/19 03:28

投稿

pass_f_0201
pass_f_0201

スコア11

test CHANGED
File without changes
test CHANGED
@@ -81,3 +81,69 @@
81
81
 
82
82
 
83
83
  ```
84
+
85
+
86
+
87
+ 追記
88
+
89
+ phpで仮のデータ(後にDBと接続するため)
90
+
91
+ ```php
92
+
93
+ public function get($params) {
94
+
95
+ $models = array(
96
+
97
+ array('1111', '1111', '1111', '1111', '1111'),
98
+
99
+ array('2222', '2222', '2222', '22,22', '22,22'),
100
+
101
+ array('3333', '3333', '3333', "3333", "3333"),
102
+
103
+ array('title' => 'タイトル',
104
+
105
+ 'name' => '名",前',
106
+
107
+ 'hoge' => 'ほげ',
108
+
109
+ 'piyo' => 'ぴよ',
110
+
111
+ 'fuga' => 'ふが',
112
+
113
+ 'fugara' => 'ほげら'),
114
+
115
+ );
116
+
117
+ return $models;
118
+
119
+ }
120
+
121
+ ```
122
+
123
+
124
+
125
+ phpからバインドしてきたデータ
126
+
127
+ ```js
128
+
129
+ ReportController.prototype = {
130
+
131
+ /**
132
+
133
+ * イベントバインド
134
+
135
+ */
136
+
137
+ bind : function () {
138
+
139
+ _http.questionnaire().done(function (response) {
140
+
141
+ console.log(response);
142
+
143
+ });
144
+
145
+ }
146
+
147
+ };
148
+
149
+ ```