私はjsfiddleでそれを試しています...............なぜそれが実行されないのかわかりません...........誰かが助けます
html section
<html>
<body>
<div>The Answer is: </div>
<div class='answer'></div>
</body>`enter code here`
</html>
js section
function writeAnswer(answer) { // helper function for output
$('div.answer').append($('<div>').text(answer));
}
function writedemo() {
var answer="hello";
writeAnswer(answer);
}
}
writedemo();