高手请教,routeros.jg这文件是什么语言写的呀?
研究 ros,发现web里面的菜单都是*.jg 这样的文件控制的,看了半天,不知道这是拿什么语言写的,请高手赐教。就是下面我粘贴的内容。[{
name: 'Quick Set',
title: 'Quick Set',
pred: {
type: 'or',
pred: [{
type: 'quickset',
bit: 0
}, {
type: 'quickset',
bit: 1
}]
},
prio: 10,
c: [{
title: 'Quick Set',
type: 'item',
path: ,
autostop: 1,
c: [{
type: 'gridcell'
}, {
name: 'Quick Set',
type: 'autoset',
confirm: 'Warning:conectivity could be lost while changing modes. Are you sure?',
c: [{
type: 'enm',
id: 'u1',
def: 4294967295,
postfix: 'Quick Set',
selector: 1,
values: {
type: 'enumfilter',
filters: [{
id: 0,
pred: {
type: 'quickset',
bit: 0
}
}, {
id: 1,
pred: {
type: 'quickset',
bit: 1
}
}],
values: {
type: 'static',
map: ['CPE', 'AP']
}
}
}]
}, {
name: 'connected',
type: 'number',
id: 'bc9',
nonpublic: 1,
ro: 1
}, {
type: 'object',
on: 'cpe',
c: [{
name: 'Info',
type: 'tab'
}, {
name: 'WLAN MAC Address',
type: 'macaddr',
id: 'r14',
ro: 1
}, {
name: 'LAN MAC Address',
type: 'macaddr',
id: 'r15',
ro: 1
}]
}, {
type: 'object',
on: 'ap',
c: [{
name: 'wbands',
type: 'number',
id: 'u1f6',
nonpublic: 1
}, {
name: 'freqoffset',
type: 'number',
id: 'u258',
nonpublic: 1
}, {
name: 'wlan',
type: 'number',
id: 'u260',
nonpublic: 1
}, {
name: 'Wireless',
type: 'tab'
}, {
name: 'SSID',
type: 'string',
id: 's25c',
opt: 1
}, {
name: 'Frequency',
type: 'enm',
id: 'u25d',
postfix: 'MHz',
values: {
type: 'offsetenum',
slot: 'freqoffset',
values: {
type: 'queryenum',
path: ,
bvaluesid: 'U2',
cmd: 1,
params: [{
name: 'wlan',
id: 'ufe0001'
}, {
name: 'Band',
id: 'u4'
}, {
name: 'Channel Width',
id: 'u5'
}, {
name: 'Country',
id: 'u1'
}, {
name: 'Frequency Mode',
id: 'u3'
}],
valuesid: 'U1'
}
},
c: [{
type: 'number'
}]
}, {
name: 'Band',
type: 'enm',
id: 'u259',
sortbyvalue: 1,
values: {
type: 'enumfilter',
filters: [{
id: 0,
pred: {
type: 'slot',
pred: {
type: 'bitmap',
mask: 1,
value: 1
},
slot: 'wbands'
}
}, {
id: 3,
pred: {
type: 'slot',
pred: {
type: 'bitmap',
mask: 2,
value: 2
},
slot: 'wbands'
}
}, {
id: 1,
pred: {
type: 'slot',
pred: {
type: 'bitmap',
mask: 8,
value: 8
},
slot: 'wbands'
}
}, {
id: 2,
pred: {
type: 'slot',
pred: {
type: 'bitmap',
mask: 9,
value: 9
},
slot: 'wbands'
}
}, {
id: 4,
pred: {
type: 'slot',
pred: {
type: 'bitmap',
mask: 512,
value: 512
},
slot: 'wbands'
}
}, {
id: 5,
pred: {
type: 'slot',
pred: {
type: 'bitmap',
mask: 514,
value: 514
},
slot: 'wbands'
}
}, {
id: 6,
pred: {
type: 'slot',
pred: {
type: 'bitmap',
mask: 1024,
value: 1024
},
slot: 'wbands'
}
}, {
id: 7,
pred: {
type: 'slot',
pred: {
type: 'bitmap',
mask: 1025,
value: 1025
},
slot: 'wbands'
}
}],
values: {
type: 'static',
map: {
0: '2GHz-B',
1: '2GHz-only-G',
2: '2GHz-B/G',
3: '5GHz-A',
4: '5GHz-only-N',
5: '5GHz-A/N',
6: '2GHz-only-N',
7: '2GHz-B/G/N'
}
}
}
},
这个是json格式,你会js的会只需要获取对象值就可以了
页:
[1]