$('#community') .bind('keyup', function () { var keywords = $(this) .val(); var isemptyvalue = true; if ($.trim(keywords) == '') { isemptyvalue = true; } else { isemptyvalue = false; } if (!isemptyvalue) { $.getjson('/house/suggest_house/' encodeuricomponent(keywords) '/' $("#site_id", parent.document) .val(), function (json) { // console.log(json);return; var content = ""; for (var i = 0, len = json.length; i < len; i ) { content = content '' json[i].borough_name ''; } content = content ""; if (json.length == 0) { $('#community-suggest') .hide(); } else { $('#community-suggest') .show(); } $('#community-suggest') .html(content); }); } else { $('#community-suggest') .hide(); $('#community-suggest') .html(''); } }); function change_text(id, name) { // var html = '{' name '}表单卡片' // var html = '' name '' name = name.substr(0,1) '.' name.substr(1) var html = '' parent.ue.geteditor('content').execcommand('inserthtml', html, true);// 第三个参数为true不产生空行 parent.layer.closeall() } // $(document).off("click",".loupanbm_js_div").on("click",".loupanbm_js_div",function () { // var $this = $(this), // _data = $this.data(), // _style = _data.style; // $this.css("border","1px solid #006dcc"); // $this.siblings(".loupanbm_js_div").css("border","1px solid #ddd"); // $("#template_form").attr("data-style",_style); // })现最新推出特价房价格优惠,有需要了解详情来电咨询