- 369 名前:名無しさん@お腹いっぱい。 mailto:sage [2007/04/29(日) 13:30:26 ID:RPVfs0TI0]
- >>368の続き
---以下続き--- function StringParser(arg){ var inputted_str, search_phrase; inputted_str = arg search_phrase = ''; var attribute_condition_ary = new Array(); var r, str; while(r=inputted_str.match(/\"(.*?)\"/)){ str = inputted_str.slice(r.index + 1, r.lastIndex - 1); if(str.indexOf(':') != -1){ attribute_condition_ary.push(attribute(str)); }else{ if(search_phrase.length > 0){ search_phrase += ' AND '; } search_phrase += str; } inputted_str = inputted_str.slice(0,r.index) + inputted_str.slice(r.lastIndex); }
|

|