WEB
有条有条
这个作者很懒,什么都没留下…
展开
-
react hook使用cropperjs截图
react hook使用cropperjs截图 之前用react-cropper的时候遇到了各种各样的问题,头炸了,项目时间紧只能换了,终于用cropperjs解决了之前遇到的问题,哭liao! 直接上代码: import Cropper from 'cropperjs'; import 'cropperjs/dist/cropper.css'; const Screenshot = (props) => { const options = { zoomTo: 0.1,原创 2021-03-23 10:37:29 · 569 阅读 · 0 评论 -
前端跨域jsonp解决方案
前端跨域解决方案 看了几篇文章,得出很多种解决跨域的方法; 这里我来用这些方法进行测试: 跨域解决方案: 1、 通过jsonp跨域 2、 document.domain + iframe跨域 3、 location.hash + iframe 4、 window.name + iframe跨域 5、 postMessage跨域 6、 跨域资源共享(CORS) 7、 nginx代理跨域 8、 nod...原创 2020-01-08 10:36:55 · 408 阅读 · 0 评论