使用 \u00A0 十六进制编码即可. document.createTextNode( ' \u00A0\u00A0\u00A0\u00A0 ' ) 转载于:https://www.cnblogs.com/takuma/archive/2009/06/17/1504896.html