随笔分类 -  【C】JSP&html

摘要:// java代码public ActionForward getSoaPdf(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException { String p... 阅读全文
posted @ 2017-12-27 15:59 Legolas_4 阅读(1660) 评论(0) 推荐(0)
摘要:> 大于 < 小于 阅读全文
posted @ 2017-11-03 10:40 Legolas_4 阅读(212) 评论(0) 推荐(0)
摘要:<tr> <td width="60" height="44">排序号:</td> <td width="180"> <input type="text" id="UPsortid" v-model="roleInfo.sort_id"/> </td></tr><tr> <td width="60" 阅读全文
posted @ 2017-09-01 13:34 Legolas_4 阅读(220) 评论(0) 推荐(0)
摘要:url:"../menu/list/"+id 与 url:"../menu/list" data:{id:id} 的区别? 阅读全文
posted @ 2017-08-31 16:16 Legolas_4 阅读(614) 评论(0) 推荐(0)
摘要:【问题】html页面不能自动更新,重启项目也不行。package时可以。 解决1:packge 解决2:ctrl +shift +F9 阅读全文
posted @ 2017-08-25 10:07 Legolas_4 阅读(236) 评论(0) 推荐(0)
摘要:<html lang="en" xmlns:th="http://www.thymeleaf.org"><head> <meta charset="UTF-8"> <title>Test</title></head><body><div> <span th:text="${method}">haha 阅读全文
posted @ 2017-08-19 16:50 Legolas_4 阅读(154) 评论(0) 推荐(0)
摘要:function addUserRole() { var instance = $('#resourcesTree').jstree(true); var select = instance.get_checked (true); var ids = []; for (var i = 0; i < 阅读全文
posted @ 2017-08-19 10:27 Legolas_4 阅读(188) 评论(0) 推荐(0)
摘要:var select = $('#roleTable').find('input[type="checkbox"]:checked'); 阅读全文
posted @ 2017-08-19 08:58 Legolas_4 阅读(316) 评论(0) 推荐(0)
摘要:错误:只是因为少了一个【/】,结束标签,耽误了有一个小时至少。。哎!! 正确: 阅读全文
posted @ 2017-08-16 16:10 Legolas_4 阅读(182) 评论(0) 推荐(0)
摘要:<html><% String path = request.getContextPath(); String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort 阅读全文
posted @ 2017-08-09 15:59 Legolas_4 阅读(165) 评论(0) 推荐(0)
摘要:$(function () { $("#btnback").click(function () { window.location.href = "${ctx}/ship/shipInfoAdd"; });}) 阅读全文
posted @ 2017-08-08 15:53 Legolas_4 阅读(266) 评论(0) 推荐(0)
摘要:base.jsp<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/ 阅读全文
posted @ 2017-08-08 14:13 Legolas_4 阅读(478) 评论(0) 推荐(0)
摘要:1.往前台传数据,可以传对象,可以传List,通过el表达式 ${}可以获取到, 类似于request.setAttribute("sts",sts)效果一样。 2.@ModelAttribute("model") 注解 3. 阅读全文
posted @ 2017-08-03 19:08 Legolas_4 阅读(3389) 评论(0) 推荐(0)
摘要:model.addAttribute() 与调用这个controller的前台ajax成功后的返回值data的关系 换句话说: $ajax success:function(data) 这个data可以从什么(哪些)地方获取? 1.model.addAttribute() 2.@ResponseBo 阅读全文
posted @ 2017-08-03 18:52 Legolas_4 阅读(628) 评论(0) 推荐(0)
摘要:。。 阅读全文
posted @ 2017-08-03 18:47 Legolas_4 阅读(138) 评论(0) 推荐(0)
摘要:var index = parent.layer.getFrameIndex(window.name); //获取当前窗体索引$('#提交的元素').on('click', function(){parent.layer.close(index); //执行关闭}); 可能需要修改上面的"submi 阅读全文
posted @ 2017-07-26 15:13 Legolas_4 阅读(461) 评论(0) 推荐(0)
摘要:<c:choose> <c:when test="${x.attachPath!=null&&x.attachPath!=''}"> <a href="http://service.huadongdata.net/boyun/${x.attachPath}" class="u_btn1" targe 阅读全文
posted @ 2017-07-25 09:20 Legolas_4 阅读(415) 评论(0) 推荐(0)
摘要:<a title="编辑" href ="javascript:return false;" onclick="return false;" style="cursor: default;"><i class="edit" style="opacity: 0.2"></i></a> 阅读全文
posted @ 2017-07-25 09:18 Legolas_4 阅读(1683) 评论(0) 推荐(0)
摘要:HTTP 请求:GET vs. POST 两种在客户端和服务器端进行请求-响应的常用方法是:GET 和 POST。 GET - 从指定的资源请求数据 POST - 向指定的资源提交要处理的数据 GET 基本上用于从服务器获得(取回)数据。注释:GET 方法可能返回缓存数据。 POST 也可用于从服务 阅读全文
posted @ 2017-05-15 13:43 Legolas_4 阅读(129) 评论(0) 推荐(0)
摘要:什么是 AJAX? AJAX = 异步 JavaScript 和 XML(Asynchronous JavaScript and XML)。 简短地说,在不重载整个网页的情况下,AJAX 通过后台加载数据,并在网页上进行显示。 使用 AJAX 的应用程序案例:谷歌地图、腾讯微博、优酷视频、人人网等等 阅读全文
posted @ 2017-05-15 13:42 Legolas_4 阅读(451) 评论(0) 推荐(0)