使用Jade引擎找出'&'的难点。 我需要使用下面的字符串,使谷歌地图的电话: script(type='text/javascript', src='http://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&sensor=SET_TO_TRUE_OR_FALSE')
如何在Jade中使用'&'
但是,这将在玉被渲染为: src="http://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&sensor=SET_TO_TRUE_OR_FALSE
感谢您的回复。我只是对原始问题做了一些修改。我需要使用“&”拨打谷歌地图,而不是“&Amp;”。目前的输出不被Google识别。 – ngzhongcai 2012-02-20 15:06:50
@ngzhongcai - 你**正在**用'&调用Google地图。 '&'是你如何告诉浏览器在某处放置一个'&'字符。 – Quentin 2012-02-20 15:11:29
https://github.com/visionmedia/jade/issues/198 – ngzhongcai 2012-02-20 15:12:59