开发者社区 问答 正文

$("#myShortcutDiv").append("“);后面的htm中有很多引号,怎么办?

$("#myShortcutDiv").append("
行政审批
“)

如题。

展开
收起
小旋风柴进 2016-03-12 15:20:57 2033 分享 版权
1 条回答
写回答
取消 提交回答
  •  $("#myShortcutDiv").append("<div class="nav_item" index="1" id="-3105659376001135908" title="行政审批"><div sty...
     最外层用单引号
     $("#myShortcutDiv").append('<div class="nav_item" index="1" id="-3105659376001135908" title="行政审批">');
    2019-07-17 19:01:01
    赞同 展开评论
问答地址: