layui.use(... function(){var _tools = {func1: function(){console.log('func1');}}window.tools = _tools;})// 外部调用,如子页面parent.tools.func1();