将form表单中的p标签、span标签序列化
代码如下:
function getFormData(idStr){
var form = $form;
var ids = idStr.split(',');
data = {
};
$(ids).each(function(){
var dom = form.find('#'+this);
if (dom.length > 0
代码如下:
function getFormData(idStr){
var form = $form;
var ids = idStr.split(',');
data = {
};
$(ids).each(function(){
var dom = form.find('#'+this);
if (dom.length > 0