距离第一篇笔记好久了,抽空把angular的笔记梳理梳理。 ng-init:初始化指令,这里可以声明变量,且变量不用指定数据类型(类似js中的var用法)。 数值变量与字符串相加默认做字符串拼接运算。 注:ng-init声明的变量皆为全局变量,不论ng-init定义在哪个标签声明的变量皆影响全局,且 ...
分类:
Web程序 时间:
2017-10-07 14:25:01
阅读次数:
253
I find some useful small searching technique today. I list them below as a memoir: 1. use site: xxx.com to search what you want in xxx.com. 2. use fil ...
分类:
其他好文 时间:
2017-10-06 23:07:38
阅读次数:
288
The Kobe Venomenon series has been pretty consistent as a performance shoe, especially being an Asia-only release model (with the exception of last ye ...
分类:
其他好文 时间:
2017-10-06 12:26:21
阅读次数:
136
The only limit to our realization of tomorrow will be our doubts of today. 实现明天理想的唯一障碍就是今天的疑虑。 When I searched some quotes on the websites about doubt ...
分类:
其他好文 时间:
2017-10-06 10:33:54
阅读次数:
184
1、储存到txt 在桌面创建一个title.txt的文本, a+为读写模式,如果文件不存在,则创建一个文件。 2、读写txt中的数据 得到的结果是:today is beautiful 集中打开文件的方式: r : 以只读方式打开文件,文件不存在则出错 w:以只写方式打开文件,文件存在则清空,不存在 ...
分类:
编程语言 时间:
2017-10-04 20:47:29
阅读次数:
195
//-1:strtok()函数 #include #include int main(void) { char buf[]="hello#world#today";//即将被分割的字符串 char *temp = strtok(buf,"#"); while(temp) { printf("%s "... ...
分类:
编程语言 时间:
2017-10-02 20:53:45
阅读次数:
232
1. 2. 3. 4. 第四个那个我输入中文会报错。embedded null byte。不知如何解决。 ...
分类:
其他好文 时间:
2017-10-01 20:35:19
阅读次数:
210
#include <stdio.h>#define N 80 int main(int argc, char *argv[]) {char a[N];printf("Hello,where are you from?\n");gets(a);if(strcmp(a,"China")==0||strc ...
分类:
编程语言 时间:
2017-10-01 19:28:45
阅读次数:
222
一、作业目标 完成API加密功能 二、作业完成度(100%) 1、客户端代码(主要是在django中添加请求头,然后在请求头内动态添加md5和时间) 2、服务器端代码(主要是验证客户端传输过来的MD5值和时间,通过时间上的限制和MD5值得校验来判断该用户传递过来的数据是否合法) 三、作业总结 1、今 ...
分类:
其他好文 时间:
2017-10-01 14:02:04
阅读次数:
184
explicit构造函数 考虑一个类Date: 这最多是一段含混代码,数据15和Date之间并没有清晰的逻辑关联。 但是,我们可以指明构造函数不能用作隐式类型转换。如果构造函数的声明带有关键字explicit,它只能用于初始化和显示类型转换。例如: 用 = 进行初始化可以看做 拷贝初始化,一般而言, ...
分类:
编程语言 时间:
2017-09-26 16:01:28
阅读次数:
210