最近由于項目需要做一個Ajax的搜集單表單的多重數據的需求,所以就采用了前端JQuery保存Object對象之后轉換成JSON的數據源傳遞給后臺處理的這樣的形式,相信有不少人大多時候是接收后臺給出的JSON數據格式,拿到前端來顯示的形式。當然這也是我個人的經歷簡介而已,高手勿噴,寫這篇文章的目的也是為了以后忘記了能夠幫助會議。或許真的能夠幫助到某些像我一個涉世不深的菜鳥。O(∩_∩)O
以下是部分關鍵代碼
首先是HTML代碼:
<fieldset> <legend>基本信息</legend> <div class="add_main" id="wrapper_add"> <div id="errorInfo" class="error container"></div> <table width="100%" border="0" cellpadding="0" cellspacing="0" class="addForm"> <tr> <th>目標對象:</th> <td> <asp:TextBox ID="obj_tbx" ClientIDMode="Static" CSSClass="input" runat="server" Width="280px"></asp:TextBox> </td> <th width="18%">工作組:</th> <td width="32%"> <asp:DropDownList ID="Group_ddl" ClientIDMode="Static" runat="server" Width="120px"></asp:DropDownList> </td> </tr> <tr> <th width="18%">項目分類:</th> <td width="32%"> <asp:DropDownList ID="javascr
新聞熱點
疑難解答