提交初始版本,使用vant ui库
This commit is contained in:
13
miniprogram_npm/@vant/weapp/wxs/object.wxs
Normal file
13
miniprogram_npm/@vant/weapp/wxs/object.wxs
Normal file
@@ -0,0 +1,13 @@
|
||||
/* eslint-disable */
|
||||
var REGEXP = getRegExp('{|}|"', 'g');
|
||||
|
||||
function keys(obj) {
|
||||
return JSON.stringify(obj)
|
||||
.replace(REGEXP, '')
|
||||
.split(',')
|
||||
.map(function(item) {
|
||||
return item.split(':')[0];
|
||||
});
|
||||
}
|
||||
|
||||
module.exports.keys = keys;
|
Reference in New Issue
Block a user