2016-04-06 20 views

答えて

-1

用途:

<script type="text/javascript"> 

    $(document).ready(function() { 
    var rowCount = $('tr').length; 
     document.write(rowCount); 
    }); 
</script> 
+5

'$(document).ready'は画像が読み込まれるのを待たずにいます。https://learn.jquery.com/using-jquery-core/document-ready/を参照してください。また、これはニクヒルの答えとどう違うのですか? – j08691

+0

どちらも同じ時間に答えられます..:| | OPはどこにイメージ:o? –

+0

いいえ、おい、1分ほど離れている。 – j08691

関連する問題