我要替换一个字符串中含有 {} 的内容url = /api/shop/delete/{id};//替换成/api/shop/delete/10;newUrl = url.replace(/^\{\S+\}$/g,10);结果替换不成功 查看完整描述