これは私のhtmlであり、どのclassNameがクエリセレクターで選択するh1の正しいクラス名かわかりません:
<div class="d-flex align-items-center flex-column flex-sm-row justify-content-between w-100 pt-10 pb-15">
<h1 class="product-title mb-0 pl-10 order-2 order-sm-1 ml-auto ml-sm-0" itemprop="name">
Samsung Galexy A70
</h1>
</div>
これは本当ですか?
var a =document.queryselector( 'h1.product-title mb-0 pl-10 order-2 order-sm-1 ml-auto ml-sm-0');
またはこれは本当ですか?
var a =document.queryselector( 'h1.product-title');
}