Alex
Alex
RReactiflux
Created by Alex on 12/30/2023 in #help-js
alexnoah.dev – 11-30 Dec 30
Oh thanks a lot this is amazing.
10 replies
RReactiflux
Created by Alex on 12/30/2023 in #help-js
alexnoah.dev – 11-30 Dec 30
and what if formData is undefined will it say something like cannot read property of undefined?
10 replies
RReactiflux
Created by Alex on 12/30/2023 in #help-js
alexnoah.dev – 11-30 Dec 30
Can you please tell me what formData?.email means? does it check if its not undefined and contains a value?
10 replies
RReactiflux
Created by Alex on 12/29/2022 in #help-js
Alex. – 09-19 Dec 29
yes thank's a lot it worked
const reg = /&gid=[0-9]&pid=[0-9]/g
const str =
"http://localhost:3000/#/test/id/123456&gid=1&pid=1&test=1/test"
const newStr = str.replace(reg, "")
console.log(newStr)
const reg = /&gid=[0-9]&pid=[0-9]/g
const str =
"http://localhost:3000/#/test/id/123456&gid=1&pid=1&test=1/test"
const newStr = str.replace(reg, "")
console.log(newStr)
7 replies
RReactiflux
Created by Alex on 12/29/2022 in #help-js
Alex. – 09-19 Dec 29
I meant if the url changes to http://localhost:3000/#/test/id/123456&gid=1&pid=1&test=1/test I want my code to replace it to http://localhost:3000/#/test/id/123456&test=1/test but what my code does is it replace it to : http://localhost:3000/#/test/id/123456 which is not good
7 replies