这是一个非常常用,但是我自己却经常忘记的一个方法: var item = 'textssdf'; console.log("'"+item+"'") > "textssdf" 转载于:https://www.cnblogs.com/fayin/p/6515528.html