摘要: (前端) <input type="submit" onclick="answersSubmit()" value="提交答案" /> </div> </form> (ajax) //以下为提交答案 function answersSubmit(){ //提交答案 $.ajax({ //几个参数需要 阅读全文
posted @ 2022-10-10 00:29 JAVA菜鸟鸿 阅读(43) 评论(0) 推荐(0)
摘要: (一)通过ID var millisecond2 = document.getElementById("set-time"); // get tag element 取值 var millisecond = millisecond2.innerHTML; 赋值 millisecond2.innerH 阅读全文
posted @ 2022-10-08 23:19 JAVA菜鸟鸿 阅读(313) 评论(0) 推荐(0)
摘要: (一)java 后端 public String getContentAjax(HttpServletResponse response) throws ParseException, IOException { //获得当前时间 Date date = new Date(); // long st 阅读全文
posted @ 2022-10-08 23:11 JAVA菜鸟鸿 阅读(36) 评论(0) 推荐(0)
摘要: (一)java后端 public String getTextContent(@RequestParam(name = "titleId") Integer titleId, HttpSession session){ //取答案 //获取题目问题信息 Midautumn2022Entity pro 阅读全文
posted @ 2022-10-08 21:49 JAVA菜鸟鸿 阅读(65) 评论(0) 推荐(0)
摘要: (一)java后端 public int ajaxUserRanking(@RequestParam(name = "titleId") Integer titleId){ List<AnswerRecordEntity> thisTitleRanking = answerRecordService 阅读全文
posted @ 2022-10-08 21:45 JAVA菜鸟鸿 阅读(127) 评论(0) 推荐(0)
摘要: (一)后端 //本题前6名,解决中文乱码 @GetMapping(value = "/XXXX",produces = "text/html;charset=UTF-8") public String ajaxThisTitleRanking(@RequestParam(name = "titleI 阅读全文
posted @ 2022-10-08 21:41 JAVA菜鸟鸿 阅读(147) 评论(0) 推荐(0)
摘要: //该方法用于在指定的毫秒数后调用函数或计算表达式。 setTimeout("abc()",1000); function abc(){ } 阅读全文
posted @ 2022-10-08 20:46 JAVA菜鸟鸿 阅读(41) 评论(0) 推荐(0)