表
a = { }
b = { x = 1, ["hello, "] = "world!" }
a.astring = "ni, hao!"
a[1] = 100
a["a table"] = b
function foo()
end
function bar()
end
a[foo] = bar
--分别穷举表a和b
for k, v in pairs(a) do
print(k, "=>",...
分类:
其他好文 时间:
2014-07-22 23:00:33
阅读次数:
261
在JavaScript可以使用try...catch来进行异常处理。例如: try {
foo.bar(); } catch (e) { alert(e.name + " : " + e.message); }
目前我们可能得到的系统异常主要包含以下6种: EvalError: raised whe...
分类:
编程语言 时间:
2014-05-01 19:01:02
阅读次数:
325
方案一:利用UINavigationBar 自带的布局item(Fixed space Bar Button Item)来适配ios7. 其实就是在原来返回按钮的位置上在多加一个占位的Item
为UINavigationBar 写一个分类。UINavigationItem+correct_offset.h
#import
@interface UINavigationIte...
分类:
移动开发 时间:
2014-05-01 17:29:39
阅读次数:
525
2、来大体讲一下“导航”(1)全局导航 :
整个网站集的导航;(如果公司的网站有很多子网站,这时便会用到全局导航啦);贴一下主要代码:using
Microsoft.SharePoint.Publishing.Navigation;PortalSiteMapProvider psm = new Po...
分类:
其他好文 时间:
2014-05-01 10:33:00
阅读次数:
301
0. 引言---回忆(1) Cauchy 积分公式 (第三章) $$\beex \bea
f\mbox{ 在 }D\mbox{ 内解析}, \mbox{ 在 }\bar D=D+\p D\mbox{ 上连续}&\ra \int_C
\cfrac{f(z)}{z-a}\rd z=2\pi if(a),...
分类:
其他好文 时间:
2014-05-01 03:47:46
阅读次数:
352
相关Matlab函数:hist, bar, cdfplot, ksdensity
(1) hist函数
n = hist(Y, x)
如果x是一个向量,返回x的长度个以x为中心的,Y的分布情况。
例如:如果x是一个5元素的向量,返回Y在以x为中心的,x长度个范围内数据直方分布。
[n,xout] = hist(...)
返回n和xout,包含有数目频率和间隔位置。可以使用bar(x...
分类:
其他好文 时间:
2014-04-30 22:11:38
阅读次数:
293