From 4e45ea985cd50efa08a99f898ea2d7be482e672f Mon Sep 17 00:00:00 2001 From: Jare Guo Date: Thu, 11 Jan 2018 10:01:13 +0800 Subject: [PATCH] improve api --- cocos2d/core/platform/js.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos2d/core/platform/js.js b/cocos2d/core/platform/js.js index 3c99593e6f..d318d12a6e 100644 --- a/cocos2d/core/platform/js.js +++ b/cocos2d/core/platform/js.js @@ -574,7 +574,7 @@ var REGEXP_STR = /%s/; /** * A string tool to construct a string with format string. * @method formatStr - * @param {String|any} msg - A JavaScript string containing zero or more substitution strings. + * @param {String|any} msg - A JavaScript string containing zero or more substitution strings (%s). * @param {any} ...subst - JavaScript objects with which to replace substitution strings within msg. This gives you additional control over the format of the output. * @returns {String} * @example