- 博客(16)
- 收藏
- 关注
原创 Vue项目管理器,运行后启动app界面空白,浏览器报Cannot read properties of undefined (reading ‘prototype‘)
Vue项目管理器,在学习iviewUI前端时遇到的错误vue ui版本使用cil,运行后启动app界面空白,浏览器报Cannot read properties of undefined (reading ‘prototype‘)vue ui版本使用cil,运行后启动app界面空白,浏览器报Cannot read properties of undefined (reading ‘prototype‘):初学vue使用vue ui功能展开界面无反应,发现需要3.0以上版本才能使用ui命令,于是就进行了更新,
2022-06-27 16:26:18
3952
1
原创 前端npm install 报错
第一步 第二步 清理缓存:npm rebuild node-sass npm uninstall node-sass 第三步 报node-sass4.9.0安装失败。 首先把项目文件夹下的package.json里面的node-sass4.9.0改成4.9.2 第四步 执行: npm i node-sass --sass_binary_site=https://npm.taobao.org/mirrors/node-sass/ 执行成功看看有没有报错,如果没报错执行下面命令 npm install ,
2020-07-07 13:57:43
501
原创 lombok插件,设置Enable Annotation Processing后依然报错解决
问题: 解决方法一: File——>Setting——>Build,Execution,Deployment——>Compiler——>Annotation Processors 中设置勾选 Enable Annotation Processing 即可 解决方法二: lombok 插件更新,于是 update 插件,重启 idea ...
2020-04-02 16:25:03
3826
原创 修改Maven镜像仓库为阿里云Maven仓库,下载如有神
<mirror> <id>nexus-aliyun</id> <mirrorOf>*</mirrorOf> <name>Nexus aliyun</name> <url>http://maven.aliyun.com/nexus/content/groups/public<...
2020-03-07 23:47:35
264
原创 位运算和取模运算的效率
一、测试代码: package BitAndModulus; public class BitAndModulusTest { public static void main(String[] args) { int number=1; for (int i = 0; i <3 ; i++) { System.out...
2020-02-06 15:49:23
871
原创 Arrays常用方法
@param src源数组。 * @param srcPos在源数组中的起始位置。 * @param dest目标数组。 * @param destPos在目标数据中的起始位置。 * @param length要复制的数组元素的数量。 package ArrayTest; import java.util.Arrays; public class ArraysTest { publ...
2020-01-03 18:01:52
150
原创 杨辉三角:new对象的时候要多注意一下。
杨辉三角:new对象的时候要多注意一下。 package ArrayTest; public class YanghuiSanJiao { public static void main(String[] args) { int[] yanghui[] = new int[10][]; // yanghui[0][0]=1; // System...
2020-01-03 16:15:06
233
原创 巧记StringBuilder,StringBuffer
StringBuilder(建筑,不安全) StringBuffer(synchronized,安全) public synchronized StringBuffer reverse() { toStringCache = null; super.reverse(); return this; } ...
2020-01-03 11:58:59
151
原创 null与""有什么区别
java中null与"“有什么区别 两者的区别与 “数字0和没有不是同一种概念”是一个道理。 null是空对象,”“是空字符串 null可以赋值给任何对象,而”“就不行了,只能赋值给字符串对象 如: String s=null;//定义了一个对象实例s,但未将该实例指向任何内存空间 String s=”";//定义了一个对象实例s,指向了一个空串 package ArrayTest; impor...
2020-01-03 11:15:09
240
原创 & 和 && 的区别
& 和 && 的区别 & 不管前面的条件是否正确,后面都执行 && 前面条件正确时,才执行后面,不正确时,就不执行,就效率而言,这个更好。 1、&&和||属于逻辑运算符。关于&&和||的表达式的运算规则是这样的: 表达式1 || 表达式2,只要任意表达式为true,则整个表达式的运算结果为true。 表达式1 &...
2019-12-25 11:36:36
543
原创 基本数据类型的转换
Java类Demo中存在方法func0、func1、func2、func3和func4,请问该方法中,哪些是不合法的定义?( ) public class Demo{ float func0() { byte i=1; return i; } float func1() { int i=1; return; } float func2()...
2019-12-20 23:41:01
202
原创 for循环
求输出结果: static boolean foo(char c) { System.out.print(c); return true; } public static void main(String[] args) { int i =0; for(foo('A');foo('B')&&(i<2);foo('C')) { i++; foo('D'); ...
2019-12-17 12:26:26
153
原创 一直都是在写有道云笔记,现在想写一些博客文章,分享给大家
一直都是在写有道云笔记,现在想写一些博客文章,分享给大家博客测试 博客测试 你好! hello World!
2019-12-16 17:22:52
212
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅