How can I extract path parameters from url?

后端 未结 0 1199
一个人的身影
一个人的身影 2021-02-12 10:44

Let\'s say I have an object that contains the values:

 const pathParams = { schoolId :\'12\', classroomId: \'j3\'}

and I have a path: school/:schoolId/classroom/         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题