聯(lián)系官方銷售客服
1835022288
028-61286886
“欄目模型字段”新建了“文本字段” 默認(rèn)的模塊搜索字段出不來,如何寫才能匹配
<input class="input" onkeypress="if(event.keyCode==13) {dr_module_search('search_keyword');return false;}" name='keyword' value='{$keyword}' id='search_keyword' placeholder="此處輸入查詢的標(biāo)準(zhǔn)名稱(標(biāo)準(zhǔn)號)" type="text" /> <button type="button" onclick="dr_module_search('search_keyword')" >提交查詢</button> <script> // 這段js是用來執(zhí)行搜索的 function dr_module_search(name) { var url="{Router::search_url($params, 'keyword', 'dayruicom')}"; var value = $("#"+name).val(); if (value) { location.href=url.replace('dayruicom', value); } else { $("#"+name).focus() dr_tips(0, "輸入關(guān)鍵字"); } return false; } </script>
是不是不能檢索欄目字段
參考文檔:《欄目模型字段參與搜索》