码迷,mamicode.com
首页 >  
搜索关键字:let    ( 14348个结果
POJ 2533 Longest Ordered Subsequence
题目链接: http://poj.org/problem?id=2533 Description A numeric sequence of ai is ordered if a1 < a2 < ... < aN. Let the subsequence of the given numeric s ...
分类:其他好文   时间:2016-09-13 22:21:59    阅读次数:177
Swift中自定义打印方法
// 1.获取打印所在的文件 let file = ( #file as NSString).lastPathComponent // 2.获取打印所在的方法 let funcName = #function // 3.获取打印所在的行数 let line = #line Swift自定义的打印方法 ...
分类:编程语言   时间:2016-09-13 19:16:55    阅读次数:326
react 评论列表插入评论数据 unshift
// unshift 新增数据放到最上面//插入 回复/发表 评论else if(action.type INSERT_COMMENT ){ let content = action.text; let senderName = action.replyName; let index = actio ...
分类:其他好文   时间:2016-09-13 18:57:40    阅读次数:421
POJ3579 Median
Description Given N numbers, X1, X2, ... , XN, let us calculate the difference of every pair of numbers: ∣Xi - Xj∣ (1 ≤ i < j ≤ N). We can get C(N,2) ...
分类:其他好文   时间:2016-09-13 16:04:16    阅读次数:193
Let'sencrypt认证的网站Https配置
推荐使用这个脚本,具体说明里面都有 https://github.com/xdtianyu/scripts/tree/master/le-dns 它是通过调用dns服务商的api更新txt记录实现,无需指定网站目录及dns解析,支持dnspod和cloudxns两大服务商 弄完之后看这篇文章配apa ...
分类:Web程序   时间:2016-09-11 12:41:31    阅读次数:229
ECMAScript学习笔记
let和const命令 let声明的作用域为代码块,不存在变量提升。 let不允许在相同的作用域内,重复声明同一个变量。 const用法与let类似,区别是const声明的变量是常量。 为什么需要块级作用域? 内层变量可能会覆盖外层变量 用来计数的循环变量泄漏为全局变量 对象的解构赋值 默认值生效的... ...
分类:其他好文   时间:2016-09-10 19:02:17    阅读次数:185
《JS权威指南学习总结--第十一章子集和扩展》
Javascript子集和扩展: http://www.cnblogs.com/ahthw/p/4298449.html ES6新增let和const关键字: http://www.cnblogs.com/ahthw/p/4298449.html JS中 var 和 let 关键字的区别:http: ...
分类:Web程序   时间:2016-09-09 18:36:44    阅读次数:162
swift笔记-if语句
//1.基本使用 let num = 23 if num > 10 { print("num is big") }else if num < 0 { print("num is fushu") }else{ print("num is mid") } swift中,if后面跟的条件语句必须是bool ...
分类:编程语言   时间:2016-09-09 14:49:28    阅读次数:141
16.swift字典
/**************************字典定义*****************************///Swift中字典的类型Dictionary//不可变字典使用let修饰//可变字典使用var修饰//注意:字典在创建时使用[]letdict:Dictionary=["name":"why","age":18]//dict=["name":"lmj","age":20]letdict1:Dictionary<..
分类:编程语言   时间:2016-09-09 01:20:03    阅读次数:164
15.swift数组的相关信息
/**********************数组定义**************************///数组:Array表示数据//let修饰的标识符是不可变数组(元素确定后不能修改)//var修饰的标识符是可变数组(可以添加和删除元素)//注意://1>定义数组是使用[],并且不需要加@//2>通常情况下数组是一个泛型集合,所..
分类:编程语言   时间:2016-09-09 01:19:20    阅读次数:162
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!