2016-08-03 41 views

回答

1

尝试:

var count = ("Dear {0}, Your one time password is {1} Thanks".match(/{|}/g) || []).length; 

希望它能帮助。

+0

感谢它的工作。 –