1. ????? ?? ????. ????? ?? ??? ??? ? ?? ???? ?? ??? ????. ????? ??? ? ???? ?????? ??? ???? ?? ??? ????. ??? ??? jsp ???? $.ajax? ?? ??????? ???? ???? html ???? ?????? ?????. ?? ??? ? ??? ??? ??? ??? ????? ??? ?? ????? ??????? ???? ???.
2.????
??????? ??? ?? ??
?????? ?? submitAnswer()
????3. ?? ??? function submitAnswer() {}
中加$.ajax({})
根本進(jìn)不了js函數(shù)submitAnswer
。 去掉$.ajax({})
才可以執(zhí)行submitAnswer
??? ????.
?? ? ??????.
小伙看你根骨奇佳,潛力無(wú)限,來(lái)學(xué)PHP伐。
?????? ???? ajax? data ???? ??? ?? ?????. ?? ??? ?????data : {"investigateTitle": '${iyInvestigate.title}',"investigateID":'${iyInvestigate.id}',"subjectOp":'subject',"selectItemOp":'selectItem',"userid":'${sessionScope.user.id}'},
Write console.log
??? ?????? ??????.
?? ??? ??? ??:
???js ??? ???? ????? ??:
html
???js
???