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

Web程序设计

Web程序设计

塞巴斯塔 / 2010-1 / 69.00元

《Web程序设计(第5版)》全面介绍了建立和维护Web站点必需的工具和技术,包括Internet和万维网的起源与演变、Web客户端和服务器端开发中的基本概念,以及与Web开发相关的主要编程语言和工具等。《Web程序设计(第5版)》对第4版的内容做了大量细致的修改并且新增了许多内容,如介绍了Flash的使用、Ajax工具包和其安全性,以及与ASP.NET AJAX的相关内容。 《Web程序设计......一起来看看 《Web程序设计》 这本书的介绍吧!

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码