我有一个常规的asp.net页面上有几个按钮。我想有一个像Stop Request这样的按钮,所以无论什么按钮被点击,用户可以点击这个按钮,并得到我的页面刷新。下面是我的想法的例子:
<asp:Button ID="btnRefresh" runat="server" OnClick="btnRefresh_Click" ToolTip="Click to generate report based on parameters selected above"
在下面的代码/ JS中。我只想在单击处理程序触发后(或单击按钮后)‘刷新’页面。约2或3秒钟后,单击已启动。所以基本上按钮点击,2-3秒已经过去,然后页面刷新。我想要用纯的JS,而不是jQuery或使用<meta>。
以下是我的JS:
$('.download-pdf').click(function() {
// I would like to add here
notChecked = $("input[type=checkbox]:not(:checked)").parent();
notChecked.hide
当用户单击刷新按钮时,我需要刷新当前页面。我正在使用Vuetify来生成按钮。
<v-btn fab dark>
<v-icon dark>refresh</v-icon>
</v-btn>
我知道我可以指定<v-btn fab dark to="myDesiredPath"来代替路由器,但是我需要刷新用户当前所在的路由。
我知道在普通的js中我可以使用location.reload(),但我不知道如何将它提供给用户点击时的按钮。
对于Ember.js,我在‘主页’页面中的‘主页’页面上有一个链接,在我的网站标题中,我有一个{#链接-到'home‘}}按钮{{/ link -to}。
我想(和我想要的)是当点击{{#链接-}},因为它已经在链接页面上,它只是刷新页面,就像大多数应用程序所做的那样。
例如。在facebook中,单击facebook图标将刷新页面,即使用户已经在新闻提要中。
JS:
function initialize() {
var latLng = new google.maps.LatLng({{location_latitude}}, {{location_longitude}});
var map = new google.maps.Map(document.getElementById('mapCanvas'), {
zoom: 8,
center: latLng,
mapTypeId: google.maps.MapTypeId.ROADMAP
});
在页面加载时,地图正在加载。
除此之外,我需
我用的是CKeditor 。在Rails 4应用程序中。
我让它正常工作,但是,我必须点击设置WYSIWYG的页面上的刷新按钮。在我的application.js文件中,我有以下内容:
$( document ).ready(function() { //this line was my attempt to fix the problem
$('.ckeditor').ckeditor({
// optional config
});
}); //and this one which is just closing the function
我的意思是,我到达了WYSIW