上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 27 下一页
摘要: package main import( "fmt" ) //变量 名字 类型 func add(a int, b int) int { var sum int sum = a + b return sum } func main() { //调用 var c int c = add(100, 20 阅读全文
posted @ 2019-11-02 13:23 小白咚 阅读(150) 评论(0) 推荐(0) 编辑
摘要: ## 1.安装Go a.打开网址http://golang.org/dl/ b.根据操作系统选择对应的安装包 c.点击安装包进行安装(linux直接解压) d.设置环境变量 1.export GOROOT=$PATH:/path/to/go/ 2.export PATH=$PATH:$GOROOT/ 阅读全文
posted @ 2019-11-02 11:25 小白咚 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 设置淘宝镜像 初始化项目 yarn init -y npm init -y 下载项目的所有声明的依赖 yarn npm install yarn与npm 使用效果相同 项目及开发 使用create-react-app(脚手架)搭建项目 npm install -g creact-react-app 阅读全文
posted @ 2019-10-27 16:15 小白咚 阅读(5816) 评论(1) 推荐(0) 编辑
摘要: this.height = parseInt(this.peopledatails.height).toFixed(1) 阅读全文
posted @ 2019-10-22 14:28 小白咚 阅读(966) 评论(0) 推荐(0) 编辑
摘要: 1.create-react-app是react官方提供的用于搭建基于react+webpack+es6项目的脚手架 2.操作: npm install -g create-react-app :全局下载工具 create-react-app react-admin :下载模板项目 cd react 阅读全文
posted @ 2019-10-20 21:51 小白咚 阅读(1146) 评论(0) 推荐(0) 编辑
摘要: http://gitref.justjavac.com/creating/ 1.查看项目文件--gitignore /.idea /node_modules是否有这个内容 1.打开git命令行 git init git add . git commit -m "init app" 默认提交maste 阅读全文
posted @ 2019-10-20 21:04 小白咚 阅读(213) 评论(0) 推荐(0) 编辑
摘要: str = "12345?789”str.split("?")[0] 输出为 12345 str.split("?")[1] 输出为 789 讲解:(split("?")为指定分割字符;[0]为分割后取前面的值,[1]为分割后取后面的值) 阅读全文
posted @ 2019-10-18 15:26 小白咚 阅读(19596) 评论(0) 推荐(0) 编辑
摘要: 1.size属性:返回Map结构的成员总数 const map = new Map([ ['name','张三'], ['title','Author'] ]) console.log(map.size) // 2 2.set 和get 3.has方法:返回一个布尔值,判断某个键是否在当前Map对象 阅读全文
posted @ 2019-10-17 18:46 小白咚 阅读(1349) 评论(0) 推荐(0) 编辑
摘要: <template> <div> <h2 style="float: right"> <a-icon type="user" style=""/>{{ username }} </h2> <div> <a-row :gutter="24"> <a-col :md="12" :lg="12"> <h3>心率</h3> <span>{{ xinlud 阅读全文
posted @ 2019-10-17 17:17 小白咚 阅读(1662) 评论(0) 推荐(0) 编辑
摘要: let命令: const 阅读全文
posted @ 2019-10-17 09:25 小白咚 阅读(173) 评论(0) 推荐(0) 编辑
摘要: map() 方法返回一个新数组,数组中的元素为原始数组元素调用函数处理后的值。 将数组对象-拆分出来对象中的某一个值。作为新数组返回 处理对象中包含多个对象-返回一个数组对象 阅读全文
posted @ 2019-10-16 11:05 小白咚 阅读(5389) 评论(0) 推荐(0) 编辑
摘要: 安装Echarts 直接使用npm进行安装。 1 npm install Echarts --save npm install Echarts --save npm install –save:会把webpack包安装到node_modules目录中会在package.json的dependenci 阅读全文
posted @ 2019-10-16 08:44 小白咚 阅读(3734) 评论(0) 推荐(1) 编辑
摘要: 单人课程统计 全部(队员:{{ people }}) {{ item.course_name }}-{{ item.course_ti... 阅读全文
posted @ 2019-10-14 11:09 小白咚 阅读(3619) 评论(0) 推荐(0) 编辑
摘要: <template> <!-- checkable-节点前添加复选框 --> <a-tree defaultExpandAll :autoExpandParent="true" :treeData="treeData" @select="this.onSelect" /> </template> data () { return { // expandedKeys: ['0-0-0', '0-0- 阅读全文
posted @ 2019-10-14 11:07 小白咚 阅读(5643) 评论(0) 推荐(0) 编辑
摘要: overflow: hidden 该元素的内容若超出了给定的宽度和高度属性,那么超出的部分将会被隐藏,不占位。 white-space: nowrap 规定段落中的文本不进行换行 text-overflow: ellipsis 显示省略符号来代表被修剪的文本。 阅读全文
posted @ 2019-10-13 22:28 小白咚 阅读(699) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 27 下一页