在jQuery中添加<div>元素, 并且把jQuery中定义的变量添加到<div>中

例子:

dStyle='<div style="padding: 20px;line-height: 20px;background-color:#314e7e;">rgba(49,81,133,0.92);color: #fff;font-weight: 600;text-align-last: center;">
            确定要把选中的店铺('+isRecomms[1]+') 专柜:'+isRecomms[2]+' 更改为: \'不推荐\' ?
     </div>'




$(window).load(function(){

$(document.body).append(dStyle);
});
posted @ 2020-03-10 23:22  陳特西  阅读(4147)  评论(0编辑  收藏  举报