API Doc

日本浅草寺观音100签
2019-07-23 - Current
<div id="qcs"></div>
<script>
function callbackFunction(data){
  document.getElementById("qcs").innerHTML = data[0] + "--" + data[1] + "<hr><h5>签文:</h5>" + data[2] + "<br><hr><h5>解析</h5>" + data[3] + "<hr>" + data[4] + "<hr><h5>备注(通常无)</h5>"  + data[5];  
}
</script>
<script type="text/javascript" src="https://api.cod.tamshen.com/?c=001&jsoncallback=callbackFunction"></script>

效果:


高中语文古诗文必背名言533句
2019-07-24 - Current

食用方法 JSONP

<div id="gs533"></div>
<script>
function callbackFunction(data){
  //[0]是古诗
  //[1]是作者和出处
  //[2]是ID,533条中的第几条
  document.getElementById("gs533").innerHTML = data[0] + "--" + data[1];  
  document.getElementById("gs533").title = data[0] + "--" + data[1]; 
}
</script>
<script type="text/javascript" src="https://api.cod.tamshen.com/?c=002&jsoncallback=callbackFunction"></script>