码迷,mamicode.com
首页 >  
搜索关键字:let    ( 14348个结果
js实现的学生管理系统
let readline = require("readline-sync"); // 引入输入模块 // 清屏函数 let clear = () => process.stdout.write(process.platform 'win32' ? '\x1Bc' : '\x1B[2J\x1B[3J ...
分类:Web程序   时间:2019-09-01 12:48:55    阅读次数:106
智能指针的简单实现
template class Sp { public: Sp(T* ptr = nullptr) : ptr_(ptr), count_(new size_t) { if (ptr) { *count_ = 1; } else { *count_ = 0; } } Sp(c... ...
分类:其他好文   时间:2019-09-01 10:35:06    阅读次数:64
近期学习js中变量提升的一点东西
1变量提升: 就是说,以var声明的变量,它的声明会被提升到当前作用域的顶端(注意是变量声明提升,变量的赋值没有提升) 举一个例子: 上面代码相当于: 2 那么如果用let和const声明的变量是否会提升?let和const是块级作用域 用以下例子进行测试: <script> console.log ...
分类:Web程序   时间:2019-09-01 10:23:43    阅读次数:103
js根据身份证号码解析获取出生年月日、性别、年龄
function getAnalysisIdCard(card, num) { if (num == 1) { //获取出生日期 let birth = card.substring(6, 10) + "-" + card.substring(10, 12) + "-" + card.substri ...
分类:Web程序   时间:2019-09-01 01:41:06    阅读次数:344
Vue-CLI项目-axios模块前后端交互(类似ajax提交)
08.31自我总结 Vue CLI项目 axios前后端交互 一.模块的安装 二.配置main.js 三.使用 JS created() { // 组件创建成功的钩子函数 // 拿到要访问课程详情的课程id let id = this.$route.params.pk || this.$route. ...
分类:移动开发   时间:2019-08-31 23:48:05    阅读次数:254
【leetcode】1170. Compare Strings by Frequency of the Smallest Character
题目如下: Let's define a function f(s) over a non-empty string s, which calculates the frequency of the smallest character in s. For example, if s = "dcce ...
分类:其他好文   时间:2019-08-31 23:28:00    阅读次数:104
python中的math函数
python库常用函数及举例: <!--[if !supportLists]-->2. <!--[endif]-->取大于等于x的最小的整数值,如果x是一个整数,则返回x>>> math.ceil(4.12)5 <!--[if !supportLists]-->3. <!--[endif]-->把y ...
分类:编程语言   时间:2019-08-31 23:25:15    阅读次数:238
vue
var,let,const,模板字符串,箭头函数,对象的单体模式,类,vue,v-if,v-show,v-for,v-text,v-html,v-bind,v-on事件处理,v-model
分类:其他好文   时间:2019-08-31 23:23:55    阅读次数:90
剑指offer66:机器人的运动范围
1 题目描述 地上有一个m行和n列的方格。一个机器人从坐标0,0的格子开始移动,每一次只能向左,右,上,下四个方向移动一格,但是不能进入行坐标和列坐标的数位之和大于k的格子。 例如,当k为18时,机器人能够进入方格(35,37),因为3+5+3+7 = 18。但是,它不能进入方格(35,38),因为 ...
分类:其他好文   时间:2019-08-31 21:46:11    阅读次数:92
ES6基础-3
//set 对象 //基本 let s = new Set(); let t = {a:"he"}; s.add(1); s.add({a:"he"}); s.add(t); s.add(undefined); s.add(undefined); let n1 = NaN,n2 = NaN; s.a... ...
分类:其他好文   时间:2019-08-31 19:50:18    阅读次数:62
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!