{I+=codeWee;}
[node.js] Convert string to template literal


function ABC(title, s)
{
	var tl = eval("`" + s + "`"); // string to template literal
}


var title= 'Title: ${title}'; // string
ABC("ABC", title);
HTML | PHP | C++ | DirectX11 | Javascript | C# | HTML5 | ASP | SQL | General | CSS | Oculus Rift | Unity3d | Virtools SDK | Tip | NSIS | PowerShell | node.js | Web API | RTSP | All
Copyright© 2016 CodeWee.com All rights reserved.