首页 > 代码库 > 利用bootbox.js写二次确认提交(以及数字转为中文数字)
利用bootbox.js写二次确认提交(以及数字转为中文数字)
页面文件
<#-- 页头 --> <#assign currNav = "deposit"> <#assign title="网校充值"> <#include "/root/commons/header.ftl"> <div class="container"> <form id="depositForm" name="depositForm" role="form" action="/root/depositlog/${schoolId}/deposit" method="post"> <div class="form-group"> <label for="schoolId">网校ID</label> <input type="text" class="form-control" id="schoolId" name="schoolId" placeholder="例如,udemy" value=http://www.mamicode.com/"${school.schoolId!''}" readonly="readonly">>Java类文件package com.school.web.controller.root; import java.math.BigDecimal; import java.nio.charset.Charset; import java.util.Date; import java.util.List; import javax.servlet.http.HttpServletRequest; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; import org.springframework.stereotype.Controller; import org.springframework.web.bind.ServletRequestUtils; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.servlet.ModelAndView; import com.school.business.DepositLogManager; import com.school.business.SchoolManager; import com.school.domain.DepositLog; import com.school.domain.Root; import com.school.domain.School; import com.school.stereotype.YesNoStatus; import com.school.util.Constants; /** * 充值管理的控制器。 */ @Controller("rootDepositManagementController") @RequestMapping("/root/depositlog") public class DepositManagementController extends AbstractRootController { private static final Logger LOG = LoggerFactory.getLogger(DepositManagementController.class); @Autowired private SchoolManager schoolManager; @Autowired private DepositLogManager depositLogManager; /** * 充值表单。 */ @RequestMapping(value = http://www.mamicode.com/"/{schoolId}/deposit", method = RequestMethod.GET)>利用bootbox.js写二次确认提交(以及数字转为中文数字)
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。