摘要: 轻量的数据交换格式 前端 JavaScript对象转换成JSON字符串 JSON.stringify() <script type="text/javascript"> var user={ name:"李白", age :3, sex:"男" }; var json=JSON.stringify( 阅读全文
posted @ 2022-04-28 11:10 磕伴 阅读(128) 评论(0) 推荐(0)
摘要: 三元运算符是一个整体 -128 ~ 128 Inter.valueOf直接返回 @test可以直接运行需要测试的方法(无需放到main中) public class FileCreate { public static void main(String[] args) { } @Test publi 阅读全文
posted @ 2022-04-28 09:44 磕伴 阅读(24) 评论(0) 推荐(0)
摘要: 处理前端提交的数据 1.提交的域名称和处理方法的参数名一致时 /hello?name=akagi @RequestMapping("/hello") public String hello666(String name){ //封装数据 System.out.println(name); retur 阅读全文
posted @ 2022-04-28 07:39 磕伴 阅读(49) 评论(0) 推荐(0)