Skip to content

Commit

Permalink
双击显示时刷新天气
Browse files Browse the repository at this point in the history
  • Loading branch information
iuv committed Apr 24, 2024
1 parent a42795f commit cf1e9ae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugin/weather/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ weather = {
document.body.insertAdjacentHTML('beforeend', html);
$("#weather1").dblclick(function() {
$('#weather2').toggle();
// 显示时刷新天气
if($('#weather2').is(':visible')){
$('#weather2 iframe').attr('src', $('#weather2 iframe').attr('src'));
}
});
},
// 销毁方法
Expand Down

0 comments on commit cf1e9ae

Please sign in to comment.