[jQuery]同一ページ内でスムーズにスクロールさせる
同一ページ内のリンクをクリックしたときにスムーズにスクロールされるようにするには、次のjQueryのスクリプトを使用することができます。 $(function(){$( 'a [href * = "#"]:not([href = "#"])')。click(function(){if(location.pathname.replace(/ ^ \ / /、 '')== this.pathname.replace(/ ^ \ //、 '')&& location.hostname == this.hostname){var target = $(this.hash); target = target.length。 。