Function.prototype.heredoc = function(){
//Use function comments to store strings without escaping.
var _str = this.toString(),
s_pos = _str.indexOf("/*") 2,
e_pos = _str.lastIndexOf("*/");
return (s_pos< 0 || e_pos<0) ? "" : _str.substring(s_pos, e_pos);
}
function fn(){
/*
Username |
Password |
@name |
zf123456 |
*/
}
varstr_table =fn.heredoc();
console.log(str_table);