![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
小技巧
Qssn丶
学无止境,码无尽头
展开
-
如何获得iframe内部的body和其他元素
记录一下如何获得iframe内部的元素~ 使用js获得 //先拿到iframe元素,可以使用querySelector或者知道id可用window.frames获得 const iframe = document.querySelector('#iframe-parent-id').firstElementChild || window.frames['my-frame-id'] //2.1 获得body const body = iframe.contentWindow.document.body原创 2021-07-20 10:24:32 · 4200 阅读 · 0 评论 -
卸载xcode后,git 报错(xcrun: error: active developer path (“/Applications/Xcode.app/Contents/Developer“) )
卸载完xcode,发现自己的终端git命令就报错了,看了下提示要求下载 xcode-select 然后一下载,xcode-select --install ,又提示已经安装过了 满头???的我执行了下xcode-select ,发现有个 -r 重置,测试了一下搞定,注意改方法需要root权限。 总结: 没安装就安装xode-select 安装过了还报错就 sudo xcode-select -r ...原创 2021-01-18 10:45:26 · 894 阅读 · 0 评论 -
预览 GitHub 项目里的html文件
在github上面html的链接前面添加上https://htmlpreview.github.io/?即可比如这个链接https://github.com/ruanyf/jstraining/blob/master/demos/backbone-demo/index.html你打开看到的是html页面,加上https://htmlpreview.github.io/?之后就可以直接显示网页了,如...转载 2018-04-18 16:35:32 · 1352 阅读 · 0 评论