当前位置: 代码迷 >> Web前端 >> 暂时,有些疑问的代码
  详细解决方案

暂时,有些疑问的代码

热度:277   发布时间:2012-10-27 10:42:26.0
临时,有些疑问的代码

model = Resource.model("UserReport");
        user_report = model.build({
            title: title,
            public_area: public_area,
            private_area: private_area,
            search: search,
            search_action: search_action,
            selector_fields: selector_fields,
            hash_key: hash_key,
            order: order,
            search_hash: search_hash
        })
        test = user_report.save()
        if(test == true)
        {
            Effect.Fade($('errorExplanation'));
            $('error_exists').style.display = 'none';
            Effect.Appear($('success'));
        }
        else
        {
            $('error_exists').style.display = '';
            Effect.Appear($('errorExplanation'));
        }
  相关解决方案