1 完成京淘后台商品维护 1.1 商品分类名称回显实现 1.1.1 需求分析 说明:需要将 商品类目 3 改为具体的名称. 如何实现? 实现步骤: 1.通过选择器动态的获取商品分类ID 3 2.发起Ajax请求,根据3获取商品分类的名称. 电子书. 3.在指定的位置完成赋值操作.` 1.1.2 页面工具栏说明 工具栏引入 data - options = "singleSelect:false,fitColumns:true,collapsible:true,pagination:true,url:'/item/query',method:'get',pageSize:20,toolbar:toolbar" > 工具栏实现: var toolbar = [ { text : '新增' , iconCls : 'icon-add' , handler : function ( ) { $ ( ".tree-title:contains('新增商品')" ) . parent ( ) . click ( ) ; } } , { text : '编辑' , iconCls : 'icon-edit' , handler : function ( ) { //获取用户选中的数据 var ids = getSelectionsIds ( ) ; if ( ids . length == 0