0
有一部分我的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>
的「¶」是每個程序的分離 - 符號。我怎樣才能追加這個列表視圖? seperately ..我需要一些幫助,謝謝
這是我的代碼。不工作
$(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');
});
});
sir pleas e看到我的代碼。它不工作即時通訊基於您的代碼 – 2013-04-29 08:32:57
空是警報消息。 – 2013-04-29 08:46:53
在什麼時候? 1或2? – Gajotres 2013-04-29 08:47:52