Skip to content

koakumaping/JavaScriptFormat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

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

About

仿照Python的format方法, JS实现

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published