该错误信息是我在一个.h文件里申明了公共变量,然后在其他类里重复使用. Build Settings ->No Common Blocks默认为YES,编译器就报错了,需要修改Build Settings里的No Common Blocks为NO. NO Common Blocks 是什么? 官方的解释是: In C, allocate even uninitialized global variables in the data section of the object file, rath…
django.db.utils.InternalError: (1060, "Duplicate column name 'user_id'")迁移报错解决方法 django.db.utils.InternalError: (1060, "Duplicate column name 'user_id'") 错误的主要原因: ​ 数据库中已经含有相应的字段了 解决方法: ​ 修改Models表中重复的字段名,尤其是设置外键的字段名很容易出现字段名重复,…
1.安装vscode之后打开黑屏,解决方案如下图,右键--属性--兼容性--勾选上 2.vscode 类名总报错 是ES2017的语法修饰器引起vscode警告. 解除的方法如果你使用的typescript就在tsconfig.json里加一个配置项. 然而后面发现vscode中"experimentalDecorators"设置无效,于是用了下面的解决方法 点击左下角图标--设置--输入“experimentalDecorators”搜索--勾选上…
代码如下: HelloWorldScene.h #ifndef __HELLOWORLD_SCENE_H__#define __HELLOWORLD_SCENE_H__ #include "cocos2d.h"class HelloWorld : public cocos2d::Layer{public:    // there's no 'id' in cpp, so we recommend returning the class instance pointer    stati…
情景:axios 异步加载数据,当返回数据为一个 数组 时,双花括号中 这样写 会报错 {{informationDetail[0].img}} 解决方案一:通过 v-if 进行判断 解决方案二:单独 定义 对象 存储 数据…
问题描述:下载文件时, 请求带中文的URL的资源时,比如:http://s237.sznews.com/pic/2010/11/23/e4fa5794926548ac953a8a525a23b6f2/竞赛资讯.png(可以在浏览器查看),用它来直接初始化NSURL,就会报错 解决方法:就是用UTF-8转义 NSString *url = [NSString stringWithFormat:@"http://google.cn/...",...]; url = [url stringB…
1 public class Text { 2 3 public static void main(String args[] ){ 4 float x=123.45; 5 System.out.println(x); 6 } 7 } 不加F默认是double类型,取值范围从大范围(double)向小范围(float)需要强制转换,报错如下: 同理long类型也需要加L,不加默认int,赋值范围超过int类型取值范围不加L编译器报错,不超过int取值范围不会报错,因为不加L则默认为int型(fl…
1.连了手机热点 fix Issue后出现提示框:No Devices Registered:Creating a provisioning profile requires one or more devices to be registered with your team.  Connect a device to your Mac to add it to your team. 公司内网各种限制 以为是网络问题又试着改了bundle id发现并不是,原来Xcode左上角设备那一项没选中自…
出现如下错误: 2016-02-13 22:09:22.318 Test[2757:192106] *** Assertion failure in -[UISearchResultsTableView dequeueReusableCellWithIdentifier:forIndexPath:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3512.30.14/UITableView.m:6564 出现这种…
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAVsAAACiCAIAAABgR/nfAAAM5ElEQVR4nO2dzZrcKBJF9Zjd/tnOdN…