내가 보이는 일부 jQuery를이 아니다 따라서 다음과 같이됩니다.정의되지 않은 함수 appendTo 문제
<div id="product-template">
Hello
<div id="product-text-template">
World
</div>
</div>
하지만 오류가 발생합니다 : Uncaught TypeError: undefined is not a function
. JSFiddle도 만들었습니다. 여기서는 http://jsfiddle.net/q76EQ/입니다. 모든 도움을
감사합니다!
힌트로
product-template
에#
을 작성하는 것을 잊지 수 있습니다 제거 : 무엇을합니까 ' "foo는".appendTo ("바")' 해야 할 것? (그리고 jQuery 객체 대신에''foo ''의 값을 선택하는 이유는 무엇입니까?) – user2864740