番号付きの別のリスト ビューに配置する必要がある XML 応答の一部があります。これが応答です
<Note>
Cook pasta according to directions, chill in ice water, drain.¶Blanch broccoli in boiling water, chill in ice water, drain.¶Use ½ soy sauce to season the chicken, heat oil in no stick pan, brown chicken, and reduce heat and finish cooking.¶Don"t overcook! Slice chicken into 1" strips, turn and cut into ¼" pieces, place into bowl with other ingredients except dressing and soy sauce.¶Mix remainder of soy sauce into dressing and pour over pasta, chicken, and vegetables.¶Toss gently and serve immediately.¶You might like to leave the pasta, chicken, broccoli un-chilled and serve it semi-warm
</Note>
「¶」は各手順の区切り記号です。そのloリストビューを追加するにはどうすればよいですか? 別に..私はいくつかの助けが必要ですありがとう
これは私のコードです。動作していません
$(req.responseText).find('NewDataSet').each(function(){
var split = $(this).find('Note').text();
var lines = split.split('¶');
$.each(lines, function(key, line) {
$('#RecipeProc').append('<li><a href="#">' + line + '</a></li>');
$('#RecipeProc').listview('refresh');
});
});