1. 首页
  2. 大数据
  3. Storm
  4. 使用json来定义函数在里面可以定义多个函数的实现方法

使用json来定义函数在里面可以定义多个函数的实现方法

上传者: 2020-12-03 05:47:47上传 PDF文件 19.58KB 热度 16次
如下所示: [removed] //普通方法 function add(a,b){ return a+b; } add(3,4); //使用json来定义函数,在里面可以定义多个函数 var method={ add:function(a,b){ return a+b; }, add2:function(a,b){ return a+b; }, add3:function(a,b){ return a+b; }, }; var temp =
下载地址
用户评论