html 解析单双引号

// 单双引号的包含,单双引号会是html 解析,需要用html 转义;例如js 动态添加元素
'<input type="text" name="end_time" class="laydate-icon" id="endtime" onclick="laydate({elem:&apos;#endtime&apos;});" >'

posted @ 2019-10-14 11:20  IBelievem  阅读(177)  评论(0)    收藏  举报