仿互站小程序
This commit is contained in:
8
vant/wxs/object.wxs
Normal file
8
vant/wxs/object.wxs
Normal file
@@ -0,0 +1,8 @@
|
||||
var REGEXP = getRegExp('{|}|\x22', '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