let WorldIdentity;
(function(WorldIdentity) {
WorldIdentity[WorldIdentity[-3] = '外挂'] = -3;
WorldIdentity[WorldIdentity[-2] = '小号'] = -2;
WorldIdentity[WorldIdentity[-1] = '可疑'] = -1;
WorldIdentity[WorldIdentity[0] = '普通'] = 0;
WorldIdentity[WorldIdentity[1] = '合伙'] = 1;
})(WorldIdentity || (WorldIdentity = {}));
Core.GameServer.Load(null, p => {
if (!p.result) {
alert(p.data, 'initialize page error:');
return;
}
let sltidentity = $('#slt_world_identity');
let sltserver = $('#slt_server');
let keys = Object.getOwnPropertyNames(WorldIdentity);
Linq.where(keys, p => !isNaN(p))
.select(p => Number(p))
.orderBy(p => p)
.forEach(p => sltidentity.append('<option value="' + p + '">' + WorldIdentity[p] + '</option>'));
Linq.orderByDescending(p.data, p => p.IsLegal)
.thenBy(p => p.ID)
.forEach(p => sltserver.append('<option value="' + p.ID + '">' + p.Name + '</option>'));
sltidentity.val(0);
});
-
Notifications
You must be signed in to change notification settings - Fork 0
zz1231118/Linq
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
JavaScript 版本的 linq
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published