例如:var idName = $(this).attr("idName");//假如idName的值为id idName为变量,如何作为json对象的键名呢? 解决方法:http://yayihouse.com/yayishuwu/chapter/1109