Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在用 javascript 和 jquery 编写简单的 ajax 代码并以 json 格式获取数据,如果那时 json 为空,我想更改按钮值。
数据不为空条件
success: function(data){ if(data!=””) document.getElementByInnerHtml('ButtonId').value=”newValue”; }//end success