0

javascript 怎样实现 heredoc 多行字符串?

clementine created at6 years ago view count: 2458
report
回复
0
var m = function(f) {
  return f.toString().split('\n').slice(1, -1).join('\n');
};
console.log(m(function(){/*
1
2
3
*/}))
6 years ago 回复

Recent search keywords