document.getElementById:
document.getElementById('idname').value; //获取input标签里的值,value;
document.getElementById('idname').innerHTML;//获取标签内部的值,例如<a id="idname">hello</a> 能拿到hello
curl_setopt去把json传到某些接口的时候,在PHP5.5以下是拿不到返回值。具体原因是没有CURLFile
需要把php版本提高到7以上。就可以拿到回传的json了
待更新