there is a proxy way to solve cross-domain problems.
I want to get
https://www.cnblogs.com/not-a.
since cross-domain access is not directly available,
http://anyorigin.com/
provides a forward proxy through a website that specializes in providing services, so that it can get the data and forward it to me.
$.getJSON("http://anyorigin.com/go?url=https://www.cnblogs.com/not-alone/articles/8552251.html&callback=?", function(data){
$("-sharpoutput").html(data.contents);});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
The content i got with proxy
<p id="output">
I successfully got the data, but all of it is garbled. Excuse me, how to solve it?