getScriptSet

码农软件 · 软件分类 · 其他jQuery插件 · 2020-01-15 20:42:10

软件介绍

Extends jQuery with our custom multi-resource asynchronous script receiver.

It ensures that the onLoaded callback will only be executed when all scripts have been loaded. It also maintains a cache of already loaded URL's to prevent multiple downloads. It also supports loading script that have their own loading mechanism, like Google Maps, by offering a way to take their callback and inject it into ourselves.

Resources are passed in the following style:

[
  "simple_javascript_file.js",
   {
      url: 'js_file_with_own_loader',
      callbackSetter: function(callback) {
        // The callback parameter is the callback that 'js_file_with_own_loader' _needs_
        // to call when it completes. So you could do it like this for example:
        module.addListener( 'onLoad', callback ) ;
        // Or you can check the example below for how it works with Google Maps e.g.
      }
  }
]

This is a sample resource definition for loading Google Maps with our own custom script that extends the Google Map object:
<code>
[ "my_google_maps_extension.js",
{ url: "http://maps.google.com/maps?file=api&v=2&key=" + GMAP_KEY + "&async=2&callback=_gmapsOwnOnLoadCallback",
  callbackSetter: function(callback) { self._gmapsOwnOnLoadCallback = callback }
} ]

本文地址:https://codercto.com/soft/d/23463.html

MySQL必知必会

MySQL必知必会

[英] Ben Forta / 刘晓霞、钟鸣 / 人民邮电出版社 / 2009-1 / 39.00元

《MySQL必知必会》MySQL是世界上最受欢迎的数据库管理系统之一。书中从介绍简单的数据检索开始,逐步深入一些复杂的内容,包括联结的使用、子查询、正则表达式和基于全文本的搜索、存储过程、游标、触发器、表约束,等等。通过重点突出的章节,条理清晰、系统而扼要地讲述了读者应该掌握的知识,使他们不经意间立刻功力大增。一起来看看 《MySQL必知必会》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

URL 编码/解码
URL 编码/解码

URL 编码/解码

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试