报错
标准形与二次型
这个作者很懒,什么都没留下…
展开
-
uni-app关于uni.setStorageSync和uni.setStorage踩坑
使用uni-app的uni.setStorageSync缓存数据报错:Error: setStorageSync:fail parameter `key`. Expected String with value "[obj原因是setStorageSync这个同步接口参数不是接收一个key,value形式的对象,而是两个参数,分别是key,value。即:uni.setStorageSync('storage_key', 'hello');异步接口才是:uni.setStorage({原创 2021-06-10 00:57:31 · 17672 阅读 · 0 评论 -
uni-app前端post请求数据json序列化解决
问题:前端使用uni-app的uni.request发送post请求时,携带data参数会被json序列化对于 POST 方法且 header[‘content-type’] 为 application/json 的数据,会进行 JSON 序列化。官方文档这就导致我写好的登录页面,传递用户名和密码,使用postman可以正常请求,但前端页面发送post请求则会报错:Required request parameter ‘username’ for method parameter type Stri原创 2021-06-08 23:38:13 · 5281 阅读 · 0 评论 -
Python cmd pip报错,pip安装requests超时
window10python 2.7.2电脑重装后python第三方库没有了。重新下载就发现好多错误。pip install requests报错显示:Fatal error in launcher: Unable to create process using '"f:\python.exe" "F:\python\Scripts\pip.exe" install request'...原创 2020-03-13 22:22:47 · 1031 阅读 · 0 评论 -
eclipse报错:Syntax error, insert ";" to complete ReturnStatement
复制代码时报错:Syntax error, insert “;” to complete ReturnStatement解决:删掉return语句与函数结尾括号之间的空格,构造函数类似。转载 2020-02-15 16:27:32 · 688 阅读 · 0 评论