AJAX内容更改加上小变化效果
16lz
2021-01-22
im trying to change an AJAX Code to add a small change effect so users can see that something happend on screen, cause the change of the content is hidden and its hard to notice that only some numbers have changed
即时尝试更改AJAX代码以添加一个小的更改效果,以便用户可以看到屏幕上发生的事情,导致内容的更改被隐藏,很难注意到只有一些数字已更改
function changeBox(post) {
if (http != null) {
http.open("POST", 'ajaxchangebox.php', true);
http.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
http.onreadystatechange = function() {
if (!http) {
return;
}
if (http.readyState == 4) {
document.getElementById("box").innerHTML = http.responseText;;
}
}
http.send(post);
}
}
更多相关文章
- JavaScript 利用 async await 实现 sleep 效果
- 尝试用jQuery创建旋转木马效果
- PySide-QtWebKit: CSS font-family没有效果
- 时间总是过得比你想像中的快,理想总是会被四周的事情所掩盖,希望能
- 在C#.net的server explorer 上建立的数据库,在sql server managem
- Android自定义View底部连续圆环效果
- Android 5.X Activity过渡动画,以及漂亮的共享元素效果
- Android Scroll分析(一)——滑动效果是如何产生的
- Android之仿美拍主要菜单滑动反弹效果