複数の選択肢jqueryの選択テキスト文字列を取得し、中にスプライス

//拼接产品字符串
VAR productArray =新しい配列();
$ .each($( "#fmeataskサブシステム")を検索( "オプション:選択された"。)、関数(指数、OBJ){
productArray.push($(OBJ)の.text());
});
$ .each($( "#fmeataskアセンブリ")を検索( "オプション:選択された"。)、関数(指数、OBJ){
productArray.push($(OBJ)の.text());
});

VAR productStr = productArray.join( "");

おすすめ

転載: www.cnblogs.com/DylanZ/p/11933395.html