{"hidden":false,"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"},"expanded":true,"children":[],"type":"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为上级模块的容器上下文对象"}}],"roles":{"demo":1},"title":"导入的公共模块","iconCls":"","inframe":false,"pageLink":""}