我想将JSON对象转换为字符串,但没有引号
这是我的代码:
function someAsyncOp(item) {...} // returns a promise
var source = Rx.Observable.from([{item1},{item2},...])
source
//Only allow a max of 10 items to be subscribed to at once
.flatMapWithMaxConcurrent(10, (item) => {
//Since a promise is eager you need to defer execution of the function
//that produces it until subscription. Defer will implicitly accept a promise
return Rx.Observable.defer(() => someAsyncOp(item))
//If you want the whole thing to continue regardless of exceptions you should also
//catch errors from the individual processes
.catch(Rx.Observable.empty())
})
.subscribe(
console.log,
console.error,
() => console.log('completed')
)
这里我从false和true值以及属性名称中删除引号 现在我想从数字值中删除引号。
我怎样才能写我的正则表达式?