common.js
/*
* ------------------------------------------------------------------------
*
* 返回筛选关键字的数组
*
* ------------------------------------------------------------------------
*
* 说明:
*
* - 用途:将筛选关键字组织成数组,准备提交
*
* - 调用:postContent["bomBean.filterKeys"] = common.get_Post_filterKeys("filterKeys");
*
* - 返回:数组类型
*
* ------------------------------------------------------------------------
* Livon 20110705A0910
*/
set_postContent_filterKeys: function( postContent, beanProperties, filterKeysInputNodeId ){
var filterKeys = trim( dijit.byId( filterKeysInputNodeId ).value ) ;
if( filterKeys.length > 0 ){
filterKeys.replace(/[(\s) ,,]+/g,' ') ;
dijit.byId( filterKeysInputNodeId ).value = filterKeys ;
postContent[ beanProperties ] = filterKeys.split(" ");
}
}
bom.js
common.set_postContent_filterKeys( postContent, "bomBean.filterKeys", "filterKeys" );