私はこのコードを持っています:
<script>
$(document).ready(function larg(){
var larghezza = $(document).width();
$("p.width").text("The width for the " + larghezza +
" is px.");
});
$(window).resize(function() {
larg();
});
</script>
ウィンドウのサイズ変更時に関数「larg」を呼び出したいのですが、機能しません。どうすればよいですか?
ありがとう