不跨域情况: const getParentUrlInIfram = () => { if(window.parent !== window.self) { //判断是否存在iframe window.top.location.href = '/' // 只有一层iframe时有效 // 或 window.parent.location.href = '/' }} 跨域情况,无解。只能间接的修改子页面URL模拟修改父页面URL const getParentUrlInIfram = () => { if(window.parent !== window.self) { //判断是否存在iframe window.top.location.href = '//localhost:8080/' // 只有一层iframe时有效 // 或 window.parent.location.href = '//localhost:8080/' }} 另外,跨域时可获取父页面URL const getParentUrlInIfram = () => { if(window.parent !== window.self) { //判断是否存在iframe return document.referrer }} fdisk -l df -h 查看硬盘挂载情况mkfs.ext4 /dev/vdb 格式化未挂载硬盘 只有格式化才能挂载mkdir /data1mount /dev/vdb /data1//重启自动挂载echo '/dev/vdb /data1 ext4 defaults 0 0'>> /etc/fstabcat /etc/fstab...
@梦幻书涯:正在实现到导航网中