teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

3

詳細の追加

2016/09/26 23:20

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -33,6 +33,7 @@
33
33
  }
34
34
 
35
35
  //「1」は表示されず、この関数は動いていない
36
+ //this.on('update', function(){}で括ってもうまくいかず
36
37
  onMouse(e) {
37
38
  this.show = true
38
39
  console.log('1')

2

簡単な修正

2016/09/26 23:20

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -7,7 +7,7 @@
7
7
  ```HTML
8
8
  <div class='bodyTextWrapper'>
9
9
  <!--テキストエリアに入力したテキストを表示-->
10
- <raw content="{'<div><' + body.tag + ' ' + 'class=&quot;' + body.class + '&quot; onmouseover=' + "{onMouse}" + ' ' + 'onmouseout=' + "{offMouse}" + '>' + body.main + '</' + body.tag + '><div show=' + "{show}" + '>delete</div></div>'}" name='content' each={ body, i in bodyMixin.bodyContents } />
10
+ <raw content="{'<div><' + body.tag + ' ' + 'class=&quot;' + body.class + '&quot; onmouseover={onMouse} onmouseout={offMouse}>' + body.main + '</' + body.tag + '><div show={show}>delete</div></div>'}" name='content' each={ body, i in bodyMixin.bodyContents } />
11
11
 
12
12
  <!--テキストエリア-->
13
13
  <div class='inputArea'>
@@ -32,12 +32,12 @@
32
32
  console.log(this.bodyMixin.bodyContents)
33
33
  }
34
34
 
35
- //「1」は表示されず、この関数は発火されていない
35
+ //「1」は表示されず、この関数は動いていない
36
36
  onMouse(e) {
37
37
  this.show = true
38
38
  console.log('1')
39
39
  }
40
- //「2」は表示されず、この関数は発火されていない
40
+ //「2」は表示されず、この関数は動いていない
41
41
  offMouse(e) {
42
42
  this.show = false
43
43
  console.log('2')
@@ -48,7 +48,7 @@
48
48
 
49
49
  ```ここに言語を入力
50
50
  <raw name="content" content="<div><p class=&quot;text&quot; onmouseover={onMouse} onmouseout={offMouse}>adfa</p><div show={show}>delete</div></div>"><div><div show="{show}">delete</div><p class="text" onmouseover="{onMouse}" onmouseout="{offMouse}">入力内容</p></div></raw>
51
+ <p class="text" onmouseover="{onMouse}" onmouseout="{offMouse}">入力内容</p>
51
52
  <div show="{show}">delete</div>
52
- <p class="text" onmouseover="{onMouse}" onmouseout="{offMouse}">入力内容</p>
53
53
  </raw>
54
54
  ```

1

誤字

2016/09/26 22:27

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -49,6 +49,6 @@
49
49
  ```ここに言語を入力
50
50
  <raw name="content" content="<div><p class=&quot;text&quot; onmouseover={onMouse} onmouseout={offMouse}>adfa</p><div show={show}>delete</div></div>"><div><div show="{show}">delete</div><p class="text" onmouseover="{onMouse}" onmouseout="{offMouse}">入力内容</p></div></raw>
51
51
  <div show="{show}">delete</div>
52
- <p class="text" onmouseover="{onMouse}" onmouseout="{offMouse}">adfa</p>
52
+ <p class="text" onmouseover="{onMouse}" onmouseout="{offMouse}">入力内容</p>
53
53
  </raw>
54
54
  ```