技术宅,fat-man

增加语言的了解程度可以避免写出愚蠢的代码

导航

2012年1月16日 #

JS解析JSON生成界面2

摘要: /* 解析JSON生成UI BEGIN*/g_index = 0;function append_new_row(buttonid,tableid){ jQuery("#"+buttonid).click( function(){ tr = append_row(null,++g_index,tableid); jQuery("#"+tableid).append(tr); });}function get_one_field(index){ fieldName = jQuery("#fieldName"+index); ... 阅读全文

posted @ 2012-01-16 13:29 codestyle 阅读(734) 评论(0) 推荐(0)

JS解析JSON生成界面1

摘要: jQuery(function() { _init_page();});function redirect(){ var url = "http://"+window.location.host if(window.location.port != "" && window.location.port != "80") url += ":" + window.location.port; url+="/home"; window.location = url;}function 阅读全文

posted @ 2012-01-16 13:24 codestyle 阅读(816) 评论(0) 推荐(0)