##erlang学习总结###1、退出,输入 haut().###2、-module###3、module_name:function_name( arguments ) 例如调用tut:double(10),说明调用tut模块的double函数。###4、模块名为tut -module(tut)....
分类:
其他好文 时间:
2014-07-28 11:25:10
阅读次数:
290
//string.format $.format = function (source, params) { if (arguments.length == 1) return function () { va...
分类:
编程语言 时间:
2014-07-28 11:24:20
阅读次数:
306
一、node模块化机制1、commonJS模块规范包括三部分:模块引用、模块定义、模块标识。例如://math.jsexports.add = function(){ var sum = 0; var args = arguments; var len = args.length; for(...
分类:
其他好文 时间:
2014-07-27 23:14:49
阅读次数:
322
命名参数(Named Arguments)就是说在调用函数时可以通过指定参数名称的方式来调用参数。它最大的好处就是方便调用参数时按调用者的需要来排列顺序,而不必死守函 数声明时的顺序,同时结合默认参数值的特性,可以选择使用默认参数还是不使用默认参数。
分类:
其他好文 时间:
2014-07-27 11:03:09
阅读次数:
247
1.将arguments转化为数组函数中的预定义变量arguments并非一个真正的数组,而是一个类似数组的对象。它具有length属性,但是没有slice,push,sort等函数,那么如何使arguments具有这些数组才有的函数呢?也就是说如何使arguments变成一个真正的数组呢?func...
分类:
编程语言 时间:
2014-07-25 16:33:31
阅读次数:
241
setInterval()函数public function setInterval(closure:Function, delay:Number,...arguments):uint语言版本:ActionScript 3.0运行时版本:AIR 1.0, Flash Player 9以指定的间隔(以...
分类:
其他好文 时间:
2014-07-25 14:09:01
阅读次数:
312
Fragment newfragment =new MyFragment();fragmentTransaction.replace(R.layout.activity_main,newfragment ).commit();提示错误:The method replace(int, Fragment...
分类:
移动开发 时间:
2014-07-25 13:48:41
阅读次数:
323
Ext版本4.2覆盖方法:Ext.override(Ext.grid.plugin.RowExpander,{
setCmp:function(grid){
varme=this,
rowBodyTpl,
features;
console.log(‘我是盖子。。‘);
me.callParent(arguments);
me.recordsExpanded={};
me.rowBodyTpl=Ext.XTemplate.getTpl(me,‘rowBodyTpl‘);
rowB..
分类:
其他好文 时间:
2014-07-24 23:55:54
阅读次数:
630
【命令】nice — 调整程序运行的优先级【格式】nice [OPTION] [command [arguments...]]【说明】在当前程序运行优先级基础之上调整指定值得到新的程序运行优先级,用新的程序运行优先级运行命令行"command [arguments...]"。优先级的范围为-20 ~...
分类:
系统相关 时间:
2014-07-24 21:56:42
阅读次数:
314
1.创建url 链接到form
$items['qianfeng/add'] = array(
'title' => t('添加信息'),
'page callback' => 'drupal_get_form',
'page arguments' => array('qianfeng_add',1),
'file' => 'videocloud_qian...
分类:
其他好文 时间:
2014-07-24 17:46:31
阅读次数:
240