获取全局实例的函数
返回上层文档
【Functions to get global instances】