上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 46 下一页
摘要: @Controller public class ProductController { /** * 用于将Controller方法返回的对象,通过HttpMessageConverter转化为指定格式 * 写入到Response对象的body数据区 */ @RequestMapping("prod 阅读全文
posted @ 2022-10-13 12:52 lwx_R 阅读(25) 评论(0) 推荐(0)
摘要: @Controller public class ViewController { //页面重定向 @RequestMapping("v1") public String queryView1(){ return "redirect:v1.jsp?a=123"; } //中文乱码 @RequestM 阅读全文
posted @ 2022-10-13 12:51 lwx_R 阅读(33) 评论(0) 推荐(0)
摘要: public boolean isSymmetric(TreeNode root) { if(root == null){ return true; } return judge(root.left,root.right); } //左节点的left = 右节点的right 左节点的right = 阅读全文
posted @ 2022-10-11 12:24 lwx_R 阅读(17) 评论(0) 推荐(0)
摘要: public TreeNode mirrorTree(TreeNode root) { if(root == null){ return null; } TreeNode left=mirrorTree(root.left); TreeNode right=mirrorTree(root.right 阅读全文
posted @ 2022-10-11 12:23 lwx_R 阅读(13) 评论(0) 推荐(0)
摘要: /遍历A树,用每个节点开始与B进行比较 public boolean isSubStructure(TreeNode A, TreeNode B) { return (A != null && B != null) && (recur(A, B) || isSubStructure(A.left, 阅读全文
posted @ 2022-10-11 12:22 lwx_R 阅读(33) 评论(0) 推荐(0)
摘要: 1.ModelAndView @Controller public class HelloController { @RequestMapping("hell")//http://localhost:8080/hell.do public ModelAndView hello(){ ModelAnd 阅读全文
posted @ 2022-10-08 18:09 lwx_R 阅读(18) 评论(0) 推荐(0)
摘要: 1.参数绑定定义 客户端请求的key/value数据 经过参数绑定,将其绑定到Controller的形参上,然后Controller直接使用该形参。 2.默认数据类型 HttpServletRequest HttpServletResponse HttpSession:HttpServletRequ 阅读全文
posted @ 2022-10-08 18:08 lwx_R 阅读(42) 评论(0) 推荐(0)
摘要: 使用@RequestMapping注解 可以在类/方法上加 @Controller @RequestMapping("url")//http://localhost:8080/url/u01.do 类级别 public class UrlController { @RequestMapping("u 阅读全文
posted @ 2022-10-08 18:04 lwx_R 阅读(156) 评论(0) 推荐(0)
摘要: 语法 /^ $/ ^ 开始标记 $ 结束标记 1.普通字符 [abc] 匹配字符串里所有abc [^abc] 匹配字符串除了abc之外的 [A-Z] 匹配A-Z之间的 . 匹配除了\n、\r之外所有 \s\S \s是匹配所有空白符,包括换行,\S 非空白符,不包括换行。 \w 匹配字母、数字、下划线 阅读全文
posted @ 2022-10-08 12:02 lwx_R 阅读(26) 评论(0) 推荐(0)
摘要: 1.渲染层和逻辑层 1.1 通信模型 小程序的运行环境分成渲染层和逻辑层,其中 WXML 模板和 WXSS 样式工作在渲染层,JS 脚本工作在逻辑层。 1.2 数据驱动 WXML结构实际上等价于一棵Dom树,通过一个JS对象也可以来表达Dom树的结构 阅读全文
posted @ 2022-10-06 18:12 lwx_R 阅读(137) 评论(0) 推荐(0)
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 46 下一页