账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    js中这种写法是定义了一个数组吗?
    23
    0
    var PrintScreen = {
            BeginCatchScreen:function(){
                try{
                    var catchScreen = document.getElementById("CatchScreen");
                    if(catchScreen.getVersion()<1002){
                        Ext.Msg.alert("消息","第一次使用截图工具,请先下载安装控件!谢谢!",function(val){
                            if(val=="ok"){
                                var isWnd = window.open("down.html","activex","");
                                isWnd.moveTo(0,0);
                                isWnd.focus();
                            }
                        });
                        return;
                    } 
                    //alert(serverName+serverPort+basepath);
                    catchScreen.BeginCatchScreen(serverName,serverPort,basepath+"/fileUploadAction.do?functionType=catchscreen",1);
                }catch(e){
                    Ext.Msg.alert("消息","第一次使用截图工具,请先下载安装控件!谢谢!",function(val){
                        if(val=="ok"){
                            var isWnd = window.open("down.html","activex","");
                            isWnd.moveTo(0,0);
                            isWnd.focus();
                        }
                    });
                }
                
            },
            showPrintScreen:function(){
                var catchScreen = Ext.getDom("CatchScreen");
                var filepath = catchScreen.GetFileName();
                //alert(filepath);
                var inputMsg =document.getElementById("message");
                var img = '<img width="210px" height="150px" ondblclick="screenDblclick(\''+filepath+'\')" src="../../../'+filepath+'"  alt="screenimg">';
                //只发送一张截图
            //    var inputMsgHtml = inputMsg.innerHTML;
                MsgNode.msg = filepath;
                inputMsg.innerHTML = img;
            },
            filterContent:function(content){
                var newContent = content;
                if(newContent.indexOf("screenimg")!=-1){
                    filepath = newContent.split("=")[1];
                    newContent = '<img class=\"catchScreenImg\" ondblclick="screenDblclick(\''+filepath+'\')" src="../'+filepath+'"  alt="screenimg">';
                }
                for(var p in emotions){
                    while(newContent.indexOf('[#'+emotions[p].EMOCODE+']')!=-1){        
                        newContent = newContent.replace('[#'+emotions[p].EMOCODE+']','<img src="images/emotion/'+emotions[p].SRC+'" />');
                    }
                }
                return newContent;
            }
    }
    
    0
    打赏
    收藏
    点击回答
        全部回答
    • 0
    • AI智能解答 超级管理员 2023-04-06 12:071楼
      ``` var arr = [1, 2, 3]; ``` 是的,这种写法定义了一个数组,其中包含了值为1、2、3的三个元素。
    • AI智能解答 超级管理员 2023-04-06 12:072楼
      ``` var arr = [1, 2, 3]; ``` 是的,这种写法定义了一个数组,其中包含了值为1、2、3的三个元素。
    • AI智能解答 超级管理员 2023-04-06 12:043楼
      ``` var arr = [1, 2, 3]; ``` 是的,这种写法定义了一个数组,其中包含了元素1、2和3。
    更多回答
    扫一扫访问手机版
    • 回到顶部
    • 回到顶部