• js 离散文件合并到一个js(调试)


    /**

     * 引入HGIS的离散js文件

     */

    var OpenLayers= {

       /**

        * Constant: VERSION_NUMBER

        */

       VERSION_NUMBER: "Release 2.13",

       /**

        * Constant: singleFile

        * TODO: remove this in 3.0 when we stop supporting build profiles that

        * include OpenLayers.js

        */

       singleFile: true,

       /**

        * Method: _getScriptLocation

        * Return the path to this script. This is also implemented in

        * OpenLayers.js

        *

        * Returns:

        * {String} Path to this script

        */

       _getScriptLocation: (function() {

       var r = new RegExp("(^|(.*?\/))(hgis[^\/]*?\.js)(\?|$)"),

               s = document.getElementsByTagName('script'),

               src, m, l = "";

           for(var i=0, len=s.length; i<len; i++) {

               src = s[i].getAttribute('src');

               if(src) {

                   m = src.match(r);

                   if(m) {

                       l = m[1];

                       break;

                   }

               }

           }

           return (function() { return l; });

       })(),

       ImgPath : ''

    };

    function includeBaseJS(){

        jsFiles = [

            "BaseTypes/Class.js",

       "BaseTypes/String.js

       ]; // etc.    var scripts = new Array(myjsFiles.length);    for (var i=0, len=myjsFiles.length; i<len; i++) {        scripts[i] = "<script src='" + myjsFiles[i] +                               "'></script>";     }    if (scripts.length > 0) {        document.write(scripts.join(""));    }}

    // 引入HGIS源码的离散js文件includeBaseJS();

    Right! is "Fuck GIS",but don't think too much; It means reach a high during playing GIS. Come on!
  • 相关阅读:
    移植Linux2.6.38到Tiny6410_1GNandflash
    【转载】Mini6410启动过程
    【转载】Mini2440启动配置文件说明
    【转载】linux2.6内核initrd机制解析
    第十三章 StringTable
    第十二章 执行引擎
    第十一章 直接内存(Direct Memory)
    第十章 对象的实例化、内存布局与访问定位
    第九章 方法区
    第八章 堆
  • 原文地址:https://www.cnblogs.com/jsbrml/p/5614726.html
Copyright © 2020-2023  润新知