码迷,mamicode.com
首页 >  
搜索关键字:let    ( 14348个结果
swift 中指针的使用UnsafeMutablePointer
在swift中已经弱化了指针的使用,可以这么使用1 let s: NSRange = NSMakeRange(0, 1)2 let at = UnsafeMutablePointer.alloc(100)3 at .memory = s4 let...
分类:编程语言   时间:2016-01-22 21:29:15    阅读次数:189
shell变量详解
1 shell变量基础shell变量是一种很“弱”的变量,默认情况下,一个变量保存一个串,shell不关心这个串是什么含义。所以若要进行数学运算,必须使用一些命令例如let、declare、expr、双括号等。shell变量可分为两类:局部变量和环境变量。局部变量只在创建它们的shell中可用。而环...
分类:系统相关   时间:2016-01-22 02:35:33    阅读次数:304
在UITextview中添加链接属性的文字
let termsAndPrivacyLabel = UITextView(frame: CGRect(x: 24/2, y: 0, width: width, height: height)) let string = "By signing up, you agree to...
分类:其他好文   时间:2016-01-20 19:22:58    阅读次数:115
Jan 19 - Sqrt(x); Math; Binary Search;
We should keep in mind that never let the integer value overranged or overstacked..Here is the trick, instead of comparing the square of a interger wi...
分类:其他好文   时间:2016-01-20 13:09:06    阅读次数:119
#CF 141B. Hopscotch
141B - HopscotchLet's bust the "level" 0?≤?i?≤?106, in which assumedly the stone could hit. Let’s find the minimal number of square on this level. The...
分类:其他好文   时间:2016-01-19 22:11:51    阅读次数:234
关于Javascript中通过var关键字声明变量和function关键字声明函数的笔记
一、概念1、变量声明在JavaScript中,变量一般通过var关键字(隐式声明,let关键字声明除外)进行声明,如下通过var关键字声明a,b,c三个变量(并给其中的a赋值):var a=1,b,c; //关键字显式声明变量a,b,c,并给a赋值console...
分类:编程语言   时间:2016-01-16 19:24:37    阅读次数:209
Linux Bash算数运算方法小结
A=1B=2方法1:let(中间无空格)let C=$A+$B方法2:$[ ]C=$[$A+$B]方法3:$(())C=$(($A+$B))方法4:expr(中间有空格)C=`expr $A + $B`
分类:系统相关   时间:2016-01-15 20:07:28    阅读次数:172
2016/1/14Ajax
AJAX请求数据Let AJAX change this text通过 AJAX 改变内容请在下面的输入框中键入字母(A - Z): 姓氏:建议:
分类:Web程序   时间:2016-01-14 22:19:48    阅读次数:656
[ES6] Generators
Example 1:function *topicList(){ yield "ES2015"; yield "Semi-colons: good or bad?"; yield "TypeScript";}for( let topic of topicList() ){ console.l...
分类:其他好文   时间:2016-01-14 22:19:06    阅读次数:244
[ES6] When should use Map instead of Object
Use Maps when keys are unknown until runtime:Map:let recentPosts = new Map();createPost( newPost, (data)=>{ // Key unknown until runtime, so use Ma...
分类:其他好文   时间:2016-01-14 06:15:21    阅读次数:152
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!