JavaScript を使用してボタン イベントを切り替えるアイコンを追加する
P粉541565322
P粉541565322 2023-09-05 00:08:30
0
1
398
<p><pre class="brush:js;toolbar:false;">関数 toggledDeleteAllBtn(){ if( $('.customer_checkbox:checked').length > 0){ $('#sel_button').text('選択されたものをすべて削除しました(' $('.customer_checkbox:checked').length ')'); }それ以外{ $('#sel_button').text('選択したものをすべて削除'); } } </pre> <pre class="brush:html;toolbar:false;"> <tr id="sid"> ID 電話番号 <th>発言</th> 日付 <th></th> <th><入力タイプ="チェックボックス" name="メインチェックボックス"></th> <th><button class="btn btn-danger btn-sm" id="sel_button"名前=「sel_button」 >
P粉541565322
P粉541565322

人気のチュートリアル
詳細>
最新のダウンロード
詳細>
ウェブエフェクト
公式サイト
サイト素材
フロントエンドテンプレート
私たちについて 免責事項 Sitemap
PHP中国語ウェブサイト:福祉オンライン PHP トレーニング,PHP 学習者の迅速な成長を支援します!