別の JS オブジェクトの内部配列を持つ JS オブジェクトがあります。内部onwは次のようになります
function outerObj()
{
this.items = new Array();
this.clear = function () {
this.items = new Array();
}
function __item(v1, v2, v3, v4) {
this.Val_1 = v1;
this.Val_2 = v2;
this.Val_3 = v3;
this.Val_4 = v4;
}
this.add = function (vA, vB, vC, vD) {
this.items.push( new __item(vA, vB, vC, vD) );
}
...
}
配列は、結果の XML を使用して、SPServicesgetListItems()
呼び出しによって読み込まれます。.each( . . . )
結果は順序付けされています ( <OrderBy>
) が、結果は一般的な苛立ちです。
1
10
11
2
21
3
42A
42B
文字を含めることから逃れることはできません (これは実際のアイテムの名前です)。
1
2
3
10
11
21
42A
42B
提案?