JavaScriptFormat 仿照Python的format方法, JS实现 用法 format(console.log(),'a is {0}, b is {1}', 'test','haha'); format('','a is {0}, b is {1}', 'test','haha'); 显示结果 a is test, b is haha