摘要: 一、方法中可以出现的参数类 1.HttpServletRequest 2.HttpServletResponse 3.HttpSession 4.Model 二、返回接收json数据 1. 接收,返回JSON数据 依赖jar包: 2.表单提交 阅读全文
posted @ 2018-04-13 17:55 fight139 阅读(228) 评论(0) 推荐(0)
摘要: @RunWith(SpringJUnit4ClassRunner.class)@ContextConfiguration(locations = "classpath:applicationContext.xml") public void test1(){ } 阅读全文
posted @ 2018-04-13 17:12 fight139 阅读(132) 评论(0) 推荐(0)
摘要: 1.使用document.cookie保存信息 document.cookie = "Test=cooo";alert(document.cookie); 注意:必须运行在在线网站上 2.jQuery方式 引入jQuery.cookie.js文件 设置:$.cookie("key","value") 阅读全文
posted @ 2018-04-13 14:32 fight139 阅读(221) 评论(0) 推荐(0)