$('#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); // })拉斐水岸特价房6500 现房,即买即住,房源不多,先到先得