这是我的代码
new ShipperHN.DAO.PostDAO().getTotalPost()
<html>
<head></head>
<title></title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<style type="text/css">
body{
height: 1000px;
}
</style>
<body>
<h2>scroll the body to see the magic</h2>
</body>
<script type="text/javascript">
$(window).on("mousewheel", function() {
var the_position = $(document).scrollTop();
if (the_position > 200)
{
$('body').css({"background-color":"red"});
}
else
{
$('body').css({"background-color":"white"});
}
});
</script>
</html>
//按时间更改,从sqlServer主机获取
但我总是只获得1个值
我如何获得当前价值?
谢谢!