1
매우 녹색입니다..append()를 사용하는 클릭 이벤트는 작동하지만 .after()를 사용하면 실패합니다.
$('.myclass div').append(' <a ">HELLO WORLD</a>').click(this.function);
를이하지 않는 : : 모든이가 왜 작동하는지 아이디어
$('.myclass div').after(' <a ">HELLO WORLD</a>').click(this.function);
감사합니다!
+1. 나를 위해 너무 빠르다 ... – nnnnnn
경우에 따라, 여기에'.after()'와'.insertAfter()'의 차이점이있다 : http://stackoverflow.com/questions/1908229/jquery-whats-the-difference- 사이에 삽입 할 수 있습니다. – JSuar
다음과 같이'$ ('. myclass div') .' ('HELLO WORLD ') .end() .Click (this.function);' – elclanrs