I want to get the rss content of this page with code
https://rss.lilydjwg.me/zhihu.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<script src="http://127.0.0.1/jquery-3.3.1.js"></script>
<script>
function Ajax( ) {
var xmlHttpReq;
xmlHttpReq = new XMLHttpRequest();
if(xmlHttpReq != null){
xmlHttpReq.open("get","https://rss.lilydjwg.me/zhihu/jian-dan-xin-li");
xmlHttpReq.send(null);
xmlHttpReq.onreadystatechange = RequestCallBack;
}
function RequestCallBack(){
if(xmlHttpReq.readyState == 4 && xmlHttpReq.status == 200 ){
document.getElementById("target").innerHTML = xmlHttpReq.responseText;
}
}
}
</script>
<input type="button" value="show content" onclick="Ajax();" />
<div id="target"></div>
</body>
</html>
Why can"t I get the content by clicking show content,? How should
be modified?