js双引号单引号的用法

js双引号单引号的之间来回嵌套,下面是一个例子:

sidePagination: "server", //服务端处理分页
	          columns: [
	                  {title: 'id',field: 'id', visible: false, align: 'center',valign: 'middle'},   
	                  {title: '验证器名称',field: 'methodName',align: 'center',valign: 'middle'}, 
	                  {title: 'class name',field: 'methodCode',align: 'center',valign: 'middle'},
	                  {title: '组名',field: 'methodGroup', visible: false, align: 'center',valign: 'middle'},
	                  {title: '组名',field: 'methodGroupName',align: 'center',valign: 'middle'},
	                  {title: '操作',field: '#',align: 'center',
	                	  formatter:function(value,row,index){  
	                    	  var e = '编辑 ';  
	                    	  var d = '删除 ';  
	                    	  return e+d;  
	                	  } 
	                  }
	          ]

function onEditClick(id, methodName, methodCode, methodGroup) {
	
	var requestUrl = "/manage/validateMethodDefineAdd.vm?validateMethodDefineId=" + id
	+"&methodName=" + methodName+"&methodCode=" + methodCode+"&methodGroup=" + methodGroup;
	window.location = requestUrl;
}





转载请注明:http://blog.csdn.net/paincupid/article/details/50983046






你可能感兴趣的:(js,js,单引号,又引号)