我正在制作一个私人网页游戏,您仅通过向您显示的 RGB 来识别颜色,我想添加“分数”系统,但我不能,因为我正在使用: function CR(){ window.location.reload(false) }
刷新整个页面有人可以告诉我如何在不影响所有内容的情况下刷新网页的一部分吗?
at first you should google it.
if you need get your data from backend, you should use ajax. Refresh/reload the content in Div using jquery/ajax ajax
if you don't need backend and you wanna change element value , so get your element by jQuery or JavaScript and set your value
$('#idTxt').val('new value');
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.