开发者

remove quotes from variable in javascript?

I really don't understand Javascr开发者_如何学Pythonipt.

In PHP, I can remove quotes like this:

$tags_array = preg_replace('/"/', '', $tags_array);

How do I write it in Javascript?


str = str.replace(/"/g, '');


You can do almost the same thing with javascript what you do with php, i mean many functions, here is the solution:

PHPJS

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜