var el = $(`<div class="ticket-description">
<ul>
<div style="display: flex;justify-content: center;align-items: center; width:100%;height:40Px">
<image src="static/img/${dot1}.${type}" style="width: 40Px;height: 40Px;">
<image src="static/img/${dot2}.${type}" style="width: 40Px;height: 40Px;">
<image src="static/img/${dot3}.${type}" style="width: 40Px;height: 40Px;">
</div>
</ul>
</div>
`)
$('#aaa').append(el);
解决方法:px改成Px ( 大小写