我试图在图像之前添加文本。该图像没有默认的类/ID。代码是这样的:
$('.status img').attr('src', 'LINK IMAGE').after('My text');
编辑:完整代码:
$('.status img').attr('src', 'LINK IMAGE1').after('My text1');
$('.status img').attr('src', 'LINK IMAGE2').after('My text2');
$('.status img').attr('src', 'LINK IMAGE3').after('My text3');