发表于: 2016-08-11 22:50:53
0 2182
今天完成的事情:杀人游戏html写完
明天计划的事情:继续努力杀人游戏
遇到的问题:传参数很麻烦,每个页面要获取一次,放在本地连接上打开的时候,必须刷新一次才会不是乱码。
收获:
今天搜params传递的时候看到了这个问题以后也许会用的到,
//解决方法如下,不知道有没有用。
用GET的时候就是params,用POST/PUT/PATCH/DELETE就是data.
根据官方文档:
根据官方文档:
- params – {Object.<string|Object>} – Map of strings or objects which will be serialized with theparamSerializer and appended as GET parameters.
- data – {string|Object} – Data to be sent as the request message data.
评论