mirror of
https://git.mirrors.martin98.com/https://github.com/cilame/v_jstools
synced 2025-08-14 15:25:56 +08:00
add
This commit is contained in:
parent
6b2b1c0896
commit
3501ee2e01
@ -272,7 +272,7 @@ function make_v(envs, keys){
|
||||
}
|
||||
return list
|
||||
}
|
||||
function is_iteral(value){
|
||||
function is_literal(value){
|
||||
var allc = ['string', 'number', 'boolean', 'undefined']
|
||||
return allc.indexOf(typeof value) != -1 || value === null
|
||||
}
|
||||
@ -364,7 +364,7 @@ function make_v(envs, keys){
|
||||
for (var i = 0; i < plist.length; i++) {
|
||||
try{
|
||||
var value = window[clazz].prototype[plist[i]]
|
||||
if (is_iteral(value)){
|
||||
if (is_literal(value)){
|
||||
var _desc = Object.getOwnPropertyDescriptors(window[clazz].prototype)[plist[i]]
|
||||
inner.push(` ${plist[i]}: ${JSON.stringify(_desc)},`)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user