zoukankan      html  css  js  c++  java
  • Atitit  hre框架v5 新特性  HREv5

    Atitit  hre框架v5 新特性  HREv5

     

    1V5新特性 apiurl2="/wrmiServlet";1

    2V1 新特性1

    3V2 新特性 添加php1

    4V3 新特性   callback_checkJavaEx(data);1

    5V4 新特性1

     

     

    1. V5新特性 apiurl2="/wrmiServlet";

     

     

     

    2. V1 新特性

    基础实现

    3. V2 新特性 添加php

    4. V3 新特性   callback_checkJavaEx(data);

    5. V4 新特性

     

     

          <script src="../com.attilax/hre/HREv4q229.js"></script>

     

     

    作者:: 绰号:老哇的爪子 ( 全名::Attilax Akbar Al Rapanui 阿提拉克斯 阿克巴 阿尔 拉帕努伊 ) 汉字名:艾龙,  EMAIL:1466519819@qq.com

    转载请注明来源: http://blog.csdn.net/attilax

     

     

     

     

     

     

     

    // JavaScript Document

    //history 

    //v4  add  callback_checkJavaEx

    function callback_checkJavaEx(data)

    {

    processJavaEX(data);

    }

    var HRE={};

     

    HRE.exe=function(param,callback)

    {

    try{

    try{

    param.rdmStr=Math.random();

    }catch(e){

    param=param+"&rdmStr2="+Math.random();

    }

    //if(isExitsFunction("submit_befor_check"))

    //submit_befor_check();

    //$iocx="aa";

    $iocx_iner="";

    if(isExitsVariable("$iocx"))

    $iocx_iner=$iocx;

    //jQuery.get("dwr.php?param="+param, [data], [callback])

    //com.attilax/dwr.php

    if(window.location.host!="")  //web envi

    {

    //alert(apiurl);

    //apiurl2= start_with (apiurl,"/")?apiurl:"/"+apiurl;

    if($approot=="/")

    $approot2="";

    else

    $approot2=$approot;

    apiurl2="/wrmiServlet";

    var urlP2= $approot2+apiurl2+"?iocx="+$iocx_iner;

    console.log("--web ajax url:"+urlP2);

    $.ajax(

    {

    type: "get",

    url:urlP2,

    data:param,

    dataType: "text",

    success: function(data) {

      //  $("#divShow").html(data);

      data=$.trim(data);

      try{

      callback_checkJavaEx(data);

      }catch(e)

      {

      if($ex_show_err_str)

    //  showErr(e);

    alert(data);

      throw e;

      }

      callback(data);

     }

     

     });

    }

     //-------------------

    // alert("window.location.host:"+window.location.host);

    if(window.location.host=="")  //cs envi

    {

    //alert(sendNSCommand);

    //var json=urlParams2json(param);

    //alert(sendNSCommand);

    sendNSCommand(param,"hre");

    //alert("sendNSCommand ok");

    }

    }catch(e)

    {

    showErr(e);

    }

    }

     

    function inDesktopMode()

    {

    return window.location.host=="";

    }

     

     

  • 相关阅读:
    LeetCode 第46题 全排列
    docker安装单节点minio
    git的免密设置
    mysql不同字符集的转换过程
    二进制安装MySQL 8.0
    二进制方式安装mysql5.7.24
    mysql替换字段中指定的部分字符串
    Minio设置永久下载链接
    pt-online-schema-change使用详解
    Oracle pctfree和pctused详解
  • 原文地址:https://www.cnblogs.com/attilax/p/15198661.html
Copyright © 2011-2022 走看看