我想在Excel中设置一个数据导入源,通过它我可以动态地从Jira中提取数据。我知道过去可以通过使用Excel Web查询和我想使用的Jira过滤器中的XML链接来实现。我一直无法确定这是否仍然可行。如果不是,是否还有另一种方法可以实现?
我有几个使用jquery的函数,这些函数在不同的页面中调用.我想知道是否可以在单个文件中定义这些函数,然后在初始文件之后包含的不同文件中调用它们.
这是一个例子:
## default.js
$(function() {
// jquery specific functions here...
function showLoader(update_area) {
update_area.ajaxStart(function() {
update_area.show();
$(this).html('<img id="loading" src="images/loading.gif" alt="loading" />');
});
}
});
## other_file.js (included after default.js)
update_area = $('#someDiv');
showLoader(update_area);
Run Code Online (Sandbox Code Playgroud)
当我这样做时,firebug给我'showLoader没有定义.我假设那是因为$(function(){})的范围; 其中包含特定于jquery的函数.如果是这种情况,那么,这是不是意味着我需要使用相同的代码来定义每个js文件中的函数?
我怎样才能正确分离这些东西?
谢谢!