1
我開發了phonegap android應用程序使用javascript.I需要移動到按鈕點擊使用javascript或jquery.如何做到這一點div的頂部。請親切指導我。 。使用javascript移動到div的頂部位置
這裏是我的代碼:
$('#toTop').click(function()
{
$('#wrapper').animate({ scrollTop: 0 },200);
});
<div id="wrapper"></div>