<HTML><HEAD><TITLE> New Document </TITLE>
<script language="javascript">
function e(){
var json=[{"kl_id":"2","kl_title":"Test date","kl_content":"Testdate","kl_type":"1","id":"1"},{"kl_id":"2","kl_title":"Test","kl_content":"Test","kl_type":"1","id":"2"}]
var str = "";
for (var one in json){
for(var key in json[one]){
str += json[one][key] + ",";
}
}
document.form.txtName.value = str;
}
</script>
</HEAD>
<BODY>
<form>
<a href="#">Click</a>
<br>
<input value="" type="text" size="50">
</form>
</BODY>
</HTML>
相关文章