会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
前端小学生
博客园
首页
新随笔
联系
订阅
管理
2021年4月10日
移动端导航返回按钮事件
摘要: popstate:返回事件 goPage(item) { this.show = true if (window.history && window.history.pushState) { this.preventDefault = true; // 往历史记录里面添加一条新的当前页面的url h
阅读全文
posted @ 2021-04-10 15:01 Alexander.L
阅读(154)
评论(0)
推荐(0)
2021年3月12日
完美解决 fatal: unable to access 'https://github.com/.../.git': Could not resolve host: github.com
摘要: 只需要在命令行中执行 git config --global --unset http.proxy git config --global --unset https.proxy
阅读全文
posted @ 2021-03-12 08:33 Alexander.L
阅读(1380)
评论(0)
推荐(0)
2019年8月8日
VS Code配置
摘要: { "files.autoSave": "afterDelay", "editor.tabSize": 4, "workbench.editor.enablePreview": false, "window.zoomLevel": 0, "workbench.statusBar.visible":
阅读全文
posted @ 2019-08-08 10:58 Alexander.L
阅读(233)
评论(1)
推荐(0)
2019年7月29日
vue-cli 安装
摘要: 一、 node安装 node -v (检查一下 版本) 二、 vue-cli 全局安装 命令行执行 : npm install -g vue-cli // 加-g是安装到全局 安装完成以后 可以输入命令 :vue 回车,可以看到针对vue的命令行; 三、初始化项目 执行命令: vue init we
阅读全文
posted @ 2019-07-29 13:48 Alexander.L
阅读(114)
评论(0)
推荐(0)
2019年7月18日
java 数据类型
摘要: 基本数据类型变量存的是数据本身, 引用类型变量存的是保存数据的空间地址。 【引用数据类型】 String 字符串 【基本数据类型】 int 整型 double 双精度浮点型 float 单精度浮点型 char 字符型 boolean 布尔型
阅读全文
posted @ 2019-07-18 13:25 Alexander.L
阅读(107)
评论(0)
推荐(0)
java 方法使用
摘要: Java 中无参无返回值方法的使用: 定义:public void 方法名(){} 调用:1. 类名 对象名 = new 类名(); 2. 对象名.方法名(); Java 中无参带返回值方法的使用: 定义:public (返回的)数据类型 方法名(){ return... } 调用:1. 类名 对象
阅读全文
posted @ 2019-07-18 09:40 Alexander.L
阅读(215)
评论(0)
推荐(0)
Java 中的方法
摘要: 定义一个方法的语法是: 访问修饰符 返回值类型 方法名(参数列表){ 方法体; } 其中: 1、 访问修饰符:方法允许被访问的权限范围, 可以是 public、protected、private 甚至可以省略 ,其中 public 表示该方法可以被其他任何代码调用 , protected 只有子类可
阅读全文
posted @ 2019-07-18 09:22 Alexander.L
阅读(153)
评论(0)
推荐(0)
2019年7月17日
java 数组
摘要: int[ ] score = { 6 , 6 }; //整型数组 double[ ] score = { 6.9 , 6.8 }; //浮点型数组 String[ ] score = { "字符串" , "字符串" }; //字符串数组 // 定义两行三列的二维数组并赋值 String[ ][ ]
阅读全文
posted @ 2019-07-17 10:22 Alexander.L
阅读(149)
评论(0)
推荐(0)
2019年7月16日
java 导入包
摘要: package icon; import java.util.Scanner;//导入Scanner包 public class hello { public static void main(String[] args) { Scanner input = new Scanner(System.i
阅读全文
posted @ 2019-07-16 15:26 Alexander.L
阅读(636)
评论(0)
推荐(0)
2019年7月12日
初识Java
摘要: 1、下载java环境 JDK https://www.oracle.com/technetwork/java/javase/downloads/index.html 2、配置环境变量 JAVA_HOME : java的安装目录 (例:C:\Program Files\Java\jdk-12.0.1)
阅读全文
posted @ 2019-07-12 11:10 Alexander.L
阅读(129)
评论(0)
推荐(0)
公告