首页,我们要理解严格模式的概念,严格模式是一种特殊的执行模式,它修复了部分语言上的不足,提供更强的错误检查,病增强安全性。可以对部分函数进行执行严格模式,如: function func(){ 'use strict' } 也可以对整个js文件进行执行严格模式,如: 'use strict' fun ...
分类:
Web程序 时间:
2016-08-22 00:18:31
阅读次数:
218
测试前台获得的数据可使用ajax,在代码中加debugger打上断电之后,查看获得的data数据。 $.ajax({ async:false, type:"post", dataType:'json', url : "url" + new Date().getTime(), success :fun ...
分类:
其他好文 时间:
2016-08-21 11:05:04
阅读次数:
337
public delegate TResult Func<in T1, in T2...., out TResult>(T1 arg1, T2 arg2....); T代表输入参数,可以是1个或多个 out TResult代表输出参数 arg 委托封装方法的参数 当我们使用一个或多个参数并且返回一个 ...
分类:
其他好文 时间:
2016-08-20 17:43:55
阅读次数:
125
http://www.cnblogs.com/yuuyuu/p/5119891.html ZC: 疑问,最后的 模块kernel_mod 调用 模块kernel_fun的函数fun,是成功的OK的。但是 模块kernel_mod 怎么就知道 它调用的就是 模块kernel_fun的fun函数?如果 ...
分类:
系统相关 时间:
2016-08-20 14:31:57
阅读次数:
285
#exercise1print "Hello world!"print "Hello Again"print "I like typing this."print "this is fun."print 'Yay! Printing.'print "I'd much rather you 'not' ...
分类:
编程语言 时间:
2016-08-19 22:10:36
阅读次数:
234
进度条C语言下的进度条参考我原来的一篇blog->进度条functionproc()
{
i=0
str=‘‘
arr=(‘|‘‘/‘‘-‘‘\\‘)
index=0
while[$i-le100]
do
printf"[%-101s][%d%%][%c]\r""$str""$i""${arr[$index]}"
str=${str}‘#‘
sleep0.1
leti++
letindex++
letindex%=4
done
printf"\n"
}
fun..
分类:
系统相关 时间:
2016-08-19 06:25:01
阅读次数:
251
一、函数式接口 函数式接口(functional interface 也叫功能性接口,其实是同一个东西)。简单来说,函数式接口是只包含一个方法的接口。比如Java标准库中的java.lang.Runnable和 java.util.Comparator都是典型的函数式接口。java 8提供 @Fun ...
分类:
编程语言 时间:
2016-08-18 19:47:07
阅读次数:
159
Divisors Description Your task in this problem is to determine the number of divisors of Cnk. Just for fun -- or do you need any special reason for su ...
分类:
其他好文 时间:
2016-08-17 11:48:55
阅读次数:
140
工作笔记记录,会持续更新.... 目录: apply tapply lapply sapply merge apply函数: apply:apply的中文意思是应用,这个函数的意思是通过将一个函数应用到矩阵或数组中,返回一个向量或数组 语法:apply(X, MARGIN, FUN, ...) , ...
分类:
其他好文 时间:
2016-08-17 08:59:11
阅读次数:
192
先贴代码: 1 <!DOCTYPE html> 2 <html> 3 <head lang="en"> 4 <meta charset="UTF-8"> 5 <title></title> 6 <script type="text/javascript"> 7 window.onload = fun ...
分类:
Web程序 时间:
2016-08-16 20:15:24
阅读次数:
401