{"inframe":false,"title":"导入的公共模块","hidden":false,"roles":{"demo":1,"dev":1},"children":[{"configs":{"serverScript":"//执行初始化操作\nrequest.setAttribute('myVar', 'abc');\n\n//定义模块公共服务器端方法，app为服务端本次请求共享的对象\nWb.apply(app, {\n  add: function(val1, val2) {\n    return val1 + val2;\n  },\n  minus: function(val1, val2) {\n    return val1 - val2;\n  }\n});","itemId":"module"},"events":{"initialize":"//执行初始化操作\nvar foo = 'bar';\n\n//定义公共客户端方法，contextOwner为上级模块客户端app对象\nWb.apply(contextOwner, {\n  add: function(val1, val2) {\n    return val1 + val2;\n  },\n  minus: function(val1, val2) {\n    return val1 - val2;\n  }\n});\n//contextOwner.contextOwner为上级模块的容器上下文对象"},"children":[],"expanded":true,"type":"module"}],"pageLink":"","iconCls":""}