在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);
});

猜你喜欢

转载自www.cnblogs.com/chentexi/p/12459654.html