Often buttons need to be handled by JavaScript, and if done improperly it can lead to accessibility issues. In this lesson you will improve a major ne ...
分类:
数据库 时间:
2016-08-05 21:31:16
阅读次数:
205
In this final React Native lesson of the series we will finalize the Notes view component and squash a few bugs in the code. ...
分类:
其他好文 时间:
2016-08-05 06:38:51
阅读次数:
135
lesson 13 : 列表命令集 list arg1 arg2 ... 创建一个列表lindex list index 返回列表 list 中的第 index 个元素(element)值llength list 计算列表 list 元素个数 example ① : 创建一个List ,List的用 ...
分类:
其他好文 时间:
2016-08-04 21:29:14
阅读次数:
140
lesson 2 :特殊符号学习 ! example ① : set Z "zhou li "set Z_LABEL "boy " puts "$Z_LABEL $Z"puts "$Z_LABEL \$Z" // 可通过 \将特殊符号输出,和C语言一样 example ② : 1. puts "\n ...
分类:
其他好文 时间:
2016-08-03 00:07:37
阅读次数:
1702
lesson 11 : proc应用 (带默认参数) 1.//使用过程的时候,不一定输入所有的参数值。过程的输入参数可以有默认值。默认值由{默认参数名 默认值}指定。如果调用过程时没有指定这些参数的值则会使用其默认值,否则使用输入值来替代默认值。在使用默认参数的时候要注意,如果默认参数之后还有非默认 ...
分类:
其他好文 时间:
2016-08-03 00:04:57
阅读次数:
226
lesson 6 :switch 的用法 ;# Set the variables we'll be comparingset x "ONE";set y 1;set z "ONE";//例子的基本数值 1. switch $x \ "ONE" "puts ONE=1" \ "TWO" "puts ...
分类:
其他好文 时间:
2016-08-03 00:03:53
阅读次数:
1335
lesson 5 :基本数学计算 1. set X 100;set Y 256;set Z [expr "$Y + $X"]//亦可以写成 set Z [expr {$Y +$X}] 2. set Z_LABEL "$Y plus $X is "puts "$Z_LABEL $Z"puts "The ...
分类:
其他好文 时间:
2016-08-02 23:57:20
阅读次数:
993
lesson 10 :proc 子函数的使用 1. proc sum {arg1 arg2} { set x [expr $arg1+$arg2]; return $x } puts " The sum of 2 + 3 is: [sum 2 3]\n\n" //[语法] :proc procNam ...
分类:
其他好文 时间:
2016-08-02 23:54:44
阅读次数:
2710
lesson 4 1. set x "abc"puts "A simple substitution: $x\n"//简单的例子 2. set y [set x "def"]puts "Remember that set returns the new value of the variable: ...
分类:
其他好文 时间:
2016-08-02 23:49:40
阅读次数:
431
lesson 7 : if的学习 1. set x 1; if {$x == 2} {puts "$x is 2"} else {puts "$x is not 2"} if {$x != 1} { puts "$x is != 1" } else { puts "$x is 1" }//if的基本 ...
分类:
其他好文 时间:
2016-08-02 23:47:23
阅读次数:
1443