上一页 1 ··· 7 8 9 10 11 12 13 14 下一页
摘要: js创建元素: document.createElement(" 创建的元素"); //“创建的元素”指:p ,h1,div,span........ js插入元素: document.body.appendChild(要插入元素); //要插入元素:var p=document.createEle 阅读全文
posted @ 2016-09-09 15:13 爆烈鼓手 阅读(598) 评论(1) 推荐(0) 编辑
摘要: 1、由后台action 传给前台是需要将map 转成json格式 复制代码代码如下: Map<String, List> resultMap; JSONObject json = JSONObject.fromObject(resultMap); message = json.toString(); 阅读全文
posted @ 2016-09-09 15:06 爆烈鼓手 阅读(18750) 评论(0) 推荐(0) 编辑
摘要: 1.所需jar包如下所示。其中选中的四个包是struts2实现ajax所必需的,所有的jar包都可以从下载的完整的struts2 包中的lib文件夹中找到。 2.Demo struts2ajax.jsp index.js User.java GotoStruts2ajax .java struts. 阅读全文
posted @ 2016-09-09 10:37 爆烈鼓手 阅读(883) 评论(0) 推荐(0) 编辑
摘要: load方法: 对上一篇中的javascript原生实现(数据格式为html),用jqury的post方法进行改造: 下面这句中“h2 a”,实现了对返回内容的选择: $.get()\$.post()方法 对上一篇中的javascript原生实现(数据格式为xml),用jqury的$.post($. 阅读全文
posted @ 2016-09-08 17:33 爆烈鼓手 阅读(153) 评论(2) 推荐(0) 编辑
摘要: xml demo 1 <%@ page language="java" contentType="text/html; charset=UTF-8" 2 pageEncoding="UTF-8"%> 3 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Tra 阅读全文
posted @ 2016-09-08 15:07 爆烈鼓手 阅读(184) 评论(0) 推荐(0) 编辑
摘要: http://www.w3school.com.cn/jsref/index.asp https://developer.mozilla.org/zh-CN/docs/Web/JavaScript 阅读全文
posted @ 2016-09-08 14:38 爆烈鼓手 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-09-08 10:39 爆烈鼓手 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 一、快捷键 1.Alt+方向键 这也是个节省时间的法宝。这个组合将当前行的内容往上或下移动。在try/catch部分,这个快捷方式尤其好使。 Alt+↓ 当前行和下面一行交互位置(特别实用,可以省去先剪切,再粘贴了) Alt+↑ 当前行和上面一行交互位置(同上) 2.Ctrl+D: 删除当前行 3. 阅读全文
posted @ 2016-09-08 10:26 爆烈鼓手 阅读(146) 评论(0) 推荐(0) 编辑
摘要: index.jsp 1 3 4 5 6 7 Insert title here 8 38 39 40 test helloWord! 41 42 test.txt hello world,the first ajax! 阅读全文
posted @ 2016-09-08 09:36 爆烈鼓手 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-09-07 20:42 爆烈鼓手 阅读(105) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 下一页