面试点
比国王富有
正在生成中
展开
-
git push的时候出现“ ! [rejected] error: failed to push some refs to ‘https://xxxx.git”已解决
git push的时候出现错误,并提示了如下信息:hint: Updates were rejected because the remote contains work that you dohint: not have locally. This is usually caused by another repository pushinghint: to the same ref. You may want to first integrate the remote changeshint:原创 2020-07-22 20:38:43 · 1863 阅读 · 0 评论 -
jsonp解决跨域请求的原理及其缺点
基本原理浏览器端: 动态生成<script>来请求后台提供数据的接口 然后定义好用于接收响应数据的函数(fn), 并将函数名通过请求参数提交给后台(如 callback=fn))2. 服务器端: 接收到请求处理产生结果数据后, 返回一个函数调用的js代码, 并将结果数据作为实参传入到回调函数中,调用回调函数浏览器端: 收到响应自动执...原创 2020-05-07 10:19:30 · 582 阅读 · 0 评论