摘要:解决ajax跨域问题,本人常用的两种方法: 方法一:使用"jsonp"属性 $.ajax({ async:false, url:loginProject+"chk/ajax/ChkMessage.xhtml", type:'get', data:{"aa":"aa"}, dataType:'json
阅读全文
摘要:Ajax的post请求属性contentType若不是“application/x-www-form-urlencode”,若是“application/json”时,HttpServletRequest的实现类不会解析表单数据来放在request parameter map中,所以通过reques
阅读全文
摘要:<tr> <th width="130px"><em>*</em></th> <td width="260px"> <input type="text" class="text02" id="userOption" list="userlist"> <datalist id="userlist">
阅读全文
摘要:重定向(客户端行为)过程: 客户端浏览器发送http请求-->web服务器接收后发送302状态码响应及对应新的地址给客户浏览器-->客户端浏览器发现是302响应,则自动再发送一个新的http请求,请求新的url地址-->服务器根据新的请求去寻找资源并发送给客户。 这里的地址可以重定向到任意的url,
阅读全文
摘要://①返显下拉 //服务端返回的已知类型 var instr_type = "${instrInfo.instr_type}"; //遍历下拉项,与已知类型相同的选项展示出来 $("#instr_type").parent().find(".list-select li").each(functio
阅读全文
摘要:$(document).bind("click",function(e){ var target = $(e.target); if(target.closest(".certificate_id").length == 0){ $(".certificate_id .list_select").r
阅读全文