草庐IT

ui_main_window

全部标签

javascript - jQuery UI 对话框没有打开第二次

我正在使用jqueryui对于一个对话框。第一次单击“单击模式”链接即可。当按下ESC键时,对话框消失。但是之后的点击不起作用。我希望它们也能正常工作。刷新页面使一切正常。HTML:Clickforamodalthisisthisisthisisthisisthisisthisisthisisthisisthisisthisisthisisthisisthisisthisisthisisthisisthisisthisisthisisthisisthisisthisisthisisthisisthisisthisisthisisthisisthisisthisisthisisthisi

javascript - 无法在 'requestAnimationFrame' : The callback provided as parameter 1 is not a function. 上执行 'Window'

不确定我在这里做错了什么......window.requestAnimFrame=function(){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(/*function*/callback){window.setTimeout(callback,1000/60);});}();

javascript - 如何在不使用 Leaflet.draw UI 的情况下单击按钮并开始新的多边形

我正在纠结的是如何在不使用Leaflet.drawUI的情况下单击按钮并开始一个新的多边形。例如$('#draw_poly').click(function(){});我可以毫无问题地将现有多边形置于编辑模式。$('.edit_polygon').click(function(){varname=$(this).text();geojson_layer.eachLayer(function(layer){if(name==layer.feature.properties.name){layer.editing.enable();}});returnfalse;});感谢JacobToy

javascript - 使用 gulp 进行丑化时,Angular-ui-router 会中断

我有以下简单的angular.js应用程序,遵循概述的最佳实践here.angular.module('myApp',['ui.router']);(function(){functionroutes($stateProvider,$urlRouterProvider){$urlRouterProvider.otherwise("/404");$stateProvider.state('createCluster',{url:'/create-cluster',templateUrl:'templates/create-cluster.html'})}angular.module('m

javascript - 单击完成后如何在剑道 ui 网格中捕获销毁事件?

我想在网格中删除按钮的点击事件完成时执行一个Action。我怎么知道什么时候在Javascript中点击了? 最佳答案 (阅读最后的重要)使用:$("tr.k-grid-delete","#grid").on("click",function(e){alert("deletedpressed!");})#grid是您的网格的ID。如果你想知道你可以做的数据项:varitem=$("#grid").data("kendoGrid").dataItem($(this).closest("tr"));或者,您可以将grid.columns

javascript - 如何在 Windows 上检查 Meteor.js 的版本

我安装了Windows版Meteor,想知道我安装的Meteor版本是什么,以决定是否需要更新。如何做到这一点?meteorupdate尚不能在Windows上运行。meteor--version返回消息Unreleased(runningfromacheckout) 最佳答案 在项目文件夹中,在命令行中试试这个...meteor--version 关于javascript-如何在Windows上检查Meteor.js的版本,我们在StackOverflow上找到一个类似的问题:

javascript - window.parent.location.href 或 window.top.location 哪个更好

我在一个项目中工作,在特定情况下我必须在错误页面上重定向。为此,我创建了Error.aspx页面。现在我正在使用window.top.location.href="../Error.aspx"并生成http://localhost/app_web/Error.aspx并且它的工作正常,除了一次(显示消息http://xyz/ErrorPage.aspx'不存在。)。那么任何人都可以建议哪个是更好的选择。谢谢 最佳答案 top“优于”parent如果您的目的是将您的页面framebust到顶层,因为您的页面可能位于一个框架内,而该框架

javascript - 多个javascript window.onload解决方案

在我问这个问题之前,我从来没有发布过这样的问题,但我不明白如何在我的代码中实现它。我有这样的代码window.onload=function(){varurl=getQueryVariable("url");document.getElementById('view').src=url;}window.onload=function(){varlinkDirect=document.getElementsByClassName("frame");for(vari=0;i那么,如何只用一个window.onload来执行代码呢 最佳答案

javascript - jQuery UI 对话框使用 setTimeout 自动关闭

我试图让我的对话框在打开三秒后自动关闭。我尝试了以下方法:setTimeout($("#mydialog").dialog('close'),3000);这是在上下文中:$("#acknowledged-dialog").dialog({height:140,modal:true});setTimeout($("#acknowledged-dialog").dialog('close'),3000);但是用这种方法,它甚至不显示!我猜close方法在页面上显示后立即被调用。日志显示没有错误。我还尝试绑定(bind)到dialogopen事件:$("#acknowledged-dialo

javascript - 如何在 angular js ui Grid 中删除 pdf 导出中的某些列

我正在使用AngularJSui网格http://ui-grid.info/docs/#/tutorial/312_exporting_data_complex我的要求是我想展示例如5列,但是当我导出PDF时,我不想导出某些列,例如username。我该怎么做? 最佳答案 有一个gridOption可以做到这一点:exporterSuppressColumns我编辑了UIGrid文档中的plunker,以演示在导出的PDF中隐藏“性别”列:http://plnkr.co/edit/89ZVlPZcQbHYzgX5l4yq?p=pre