0

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

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

Recent search keywords