最佳答案
I wanted to try using template literals and it’s not working: it’s displaying the literal variable names, instead of the values. I am using Chrome v50.0.2 (and jQuery).
console.log('categoryName: ${this.categoryName}\ncategoryElements: ${this.categoryElements} ');
${this.categoryName}
categoryElements: ${this.categoryElements}