layui.use(... function(){
var _tools = {
func1: function(){
console.log('func1');
}
}
window.tools = _tools;
})


// 外部调用,如子页面
parent.tools.func1();

相关文章:

  • 2022-12-23
  • 2021-10-04
  • 2022-12-23
  • 2022-12-23
  • 2021-10-20
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-17
  • 2022-12-23
  • 2022-12-23
  • 2021-08-19
  • 2022-12-23
相关资源
相似解决方案