問題タブ [skel]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
3 に答える
22423 参照

javascript - 画面サイズが変わったときにvue.jsのデータ値を変更するには?

(max-width: 547px) の画面ブレークポイントがアクティブになったときに「mobile」の値を変更する方法を探しています。そして、このモバイル ブレークポイントが非アクティブになったとき (画面が 547 ピクセルを超えたとき) に元に戻します。私は通常 skel ( https://github.com/ajlkn/skel ) を使用してスクリーン ブレークポイントを処理しますが、Vue 内から skel にアクセスすることはできません。この特定のタスクには Vue を使用しませんが、display: none と display: block を使用するとプレゼンテーションが中断され、要素がブロックに変わります。