同事的网站莫名其妙的就能通过https访问了,排查了下,发现直接解析IP到服务器是不支持https的,确认问题出在CloudFlare上,搜索了下,CloudFlare果然提供https访问方式的功能,如何关闭该功能呢?看下图的部分设置为Off即可。
CloudFlare-https禁止办法 CloudFlare提供[……]

阅读全文

最低级的get而已,返回文本,有兴趣的自己去stackoverflow了解详细的。

function ajax(){xhReq=new XMLHttpRequest();xhReq.open("GET",document.URL+"&a=update&[......]

阅读全文