2016-08-03 30 views

回答

1

嘗試:

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

希望它能幫助。

+0

感謝它的工作。 –