• 关于

    CodeFile

    的搜索结果

问题

如何实现点击退出a标签后浏览器不能返回到之前的页面

小旋风柴进 2019-12-01 19:38:01 1214 浏览量 回答数 1

问题

后台如何获取ASPxGridView里 <%#Eval("FTI_MARK")%>的值

小旋风柴进 2019-12-01 19:47:36 1005 浏览量 回答数 1

问题

钉钉PC版免登

x1051000052 2019-12-01 21:16:54 3135 浏览量 回答数 4

万券齐发助力企业上云,爆款产品低至2.2折起!

限量神券最高减1000,抢完即止!云服务器ECS新用户首购低至0.95折!

问题

扫码功能无反应

zsp13 2019-12-01 21:19:32 3645 浏览量 回答数 1

回答

require没定义,模块加载器用的是啥?加进去了吗? @Kener-林峰我是把require.js跟echarts放在同一个目录下,下面这段代码只取 <script>里的内容放到ascx控件里,再加上src="../../../js/require.js"不报错了,但是图出不来,帮忙看下,谢谢。 <%@PageLanguage="C#"AutoEventWireup="true"CodeFile="Default.aspx.cs"Inherits="_Default"%> <!DOCTYPEhtml><htmllang="en"><head>   <metacharset="utf-8"/>   <title>ECharts</title>   <!--Step:1Importamoduleloader,suchasesl.jsorrequire.js-->   <!--Step:1引入一个模块加载器,如esl.js或者require.js-->   <scripttype="text/javascript"src="js/echarts/doc/asset/js/esl/esl.js"></script></head> <body>   <!--Step:2PrepareadomforEChartswhich(must)hassize(width&hight)-->   <!--Step:2为ECharts准备一个具备大小(宽高)的Dom-->   <divid="main"style="height:500px;border:1pxsolid#ccc;padding:10px;"></div>      <scripttype="text/javascript">       //Step:3conifgECharts'spath,linktoecharts.jsfromcurrentpage.       //Step:3为模块加载器配置echarts的路径,从当前页面链接到echarts.js,定义所需图表路径       require.config({           packages:[       {           name:'echarts',           location:'js/echarts/src',           main:'echarts'       },       {           name:'zrender',           location:'js/zrender/src',//zrender与echarts在同一级目录           main:'zrender'       }   ]       });        //Step:4requireechartsanduseitinthecallback.       //Step:4动态加载echarts然后在回调函数中开始使用,注意保持按需加载结构定义图表路径       require(       [           'echarts',           'echarts/chart/bar',          'echarts/chart/line'       ],       function(ec){           varmyChart=ec.init(document.getElementById('main'));           varoption={               tooltip:{                   trigger:'axis'               },               legend:{                   data:['蒸发量','降水量']               },               toolbox:{                   show:true,                   feature:{                       mark:true,                       dataView:{readOnly:false},                       magicType:['line','bar'],                       restore:true,                       saveAsImage:true                   }               },               calculable:true,               xAxis:[                   {                       type:'category',                       data:['1月','2月','3月','4月','5月','6月','7月','8月','9月','10月','11月','12月']                   }               ],               yAxis:[                   {                       type:'value',                       splitArea:{show:true}                   }               ],               series:[                   {                       name:'蒸发量',                       type:'bar',                       data:[2.0,4.9,7.0,23.2,25.6,76.7,135.6,162.2,32.6,20.0,6.4,3.3]                   },                   {                       name:'降水量',                       type:'bar',                       data:[2.6,5.9,9.0,26.4,28.7,70.7,175.6,182.2,48.7,18.8,6.0,2.3]                   }               ]           };            myChart.setOption(option);       }   );   </script></body></html>  head里引入esl,script里就是packet路径问题了,看看network里404请求就明白了解决了,是路径问题

爱吃鱼的程序员 2020-06-22 15:16:17 0 浏览量 回答数 0

回答

Re苹果手机使用JSAPI扫码功能提示scan err,安卓正常,什么情况?!?! 钉钉自带的扫描在苹果下也可以用,微应用里使用JSAPI就不行,苹果手机权限也看了,全都放开着呢,为什么啊?!? ------------------------- Re苹果手机使用JSAPI扫码功能提示scan err,安卓正常,什么情况?!?! /** * Created by liqiao on 8/10/15. *///logger.i('Here we go...');//logger.i(location.href);/** * _config comes from server-side template. see views/index.jade */dd.config({    agentId: _config.agentId,    corpId: _config.corpId,    timeStamp: _config.timeStamp,    nonceStr: _config.nonceStr,    signature: _config.signature,    jsApiList: [        'runtime.info',        'device.notification.prompt',        'biz.chat.pickConversation',        'device.notification.confirm',        'device.notification.alert',        'device.notification.prompt',        'biz.chat.open',        'biz.util.open',        'biz.user.get',        'biz.contact.choose',        'biz.telephone.call',        'biz.ding.post',        'biz.util.scan']});dd.userid = 0;dd.ready(function () {    //logger.i('dd.ready rocks!');    dd.runtime.info({        onSuccess: function (info) {            //logger.i('runtime info: ' + JSON.stringify(info));        },        onFail: function (err) {            logger.e('fail: ' + JSON.stringify(err));        }    });    dd.runtime.permission.requestAuthCode({        corpId: _config.corpId, //企业id        onSuccess: function (info) {            //logger.i('authcode: ' + info.code);            $.ajax({                url: '/sendMsg.php',                type: "POST",                data: { "event": "get_userinfo", "code": info.code },                dataType: 'json',                timeout: 900,                success: function (data, status, xhr) {                    var info = JSON.parse(data);                    if (info.errcode === 0) {                        //logger.i('user id: ' + info.userid);                        dd.userid = info.userid;                    }                    else {                        logger.e('auth error: ' + data);                    }                },                error: function (xhr, errorType, error) {                    if(error!=null)                        logger.e(errorType + ', ' + error);                }            });        },        onFail: function (err) {            logger.e('requestAuthCode fail: ' + JSON.stringify(err));        }    });    dd.biz.user.get({        onSuccess: function (info) {            //logger.e('userGet success: ' + JSON.stringify(info));        },        onFail: function (err) {            logger.e('userGet fail: ' + JSON.stringify(err));        }    });    $('.chooseonebtn').on('click', function () {        dd.biz.chat.pickConversation({            corpId: _config.corpId, //企业id            isConfirm: 'false', //是否弹出确认窗口,默认为true            onSuccess: function (data) {                var chatinfo = data;                if (chatinfo) {                    console.log(chatinfo.cid);                    dd.device.notification.prompt({                        message: "发送消息",                        title: chatinfo.title,                        buttonLabels: ['发送', '取消'],                        onSuccess: function (result) {                            var text = result.value;                            if (text == '') {                                return false;                            }                            $.ajax({                                url: '/sendMsg.php',                                type: "POST",                                data: { "event": "send_to_conversation", "cid": chatinfo.cid, "sender": dd.userid, "content": text },                                dataType: 'json',                                timeout: 900,                                success: function (data, status, xhr) {                                    var info = data;                                    //logger.i('sendMsg: ' + JSON.stringify(data));                                    if (info.errcode == 0) {                                        //logger.i('sendMsg: 发送成功');                                        /**                                         * 跳转到对话界面                                         */                                        dd.biz.chat.open({                                            cid: chatinfo.cid,                                            onSuccess: function (result) {                                            },                                            onFail: function (err) { }                                        });                                    } else {                                        logger.e('sendMsg: 发送失败' + info.errmsg);                                    }                                },                                error: function (xhr, errorType, error) {                                    logger.e(errorType + ', ' + error);                                }                            });                        },                        onFail: function (err) { }                    });                }            },            onFail: function (err) {            }        });    });    $('.scan').on('click', function () {        dd.biz.util.scan({            type: String,//type为qrCode或者barCode            onSuccess: function (data) {                //onSuccess将在扫码成功之后回调                /* data结构                  { 'text': String}                */                window.location.href = "?ma=" + data.text;            },            onFail: function (err) {                alert("scan err");            }        });    });    $('.phonecall').on('click', function () {        dd.biz.contact.choose({            startWithDepartmentId: 0, //-1表示打开的通讯录从自己所在部门开始展示, 0表示从企业最上层开始,(其他数字表示从该部门开始:暂时不支持)            multiple: false, //是否多选: true多选 false单选; 默认true            users: [], //默认选中的用户列表,userid;成功回调中应包含该信息            corpId: _config.corpId, //企业id            max: 10, //人数限制,当multiple为true才生效,可选范围1-1500            onSuccess: function (data) {                if (data && data.length > 0) {                    var selectUserId = data[0].emplId;                    if (selectUserId > 0) {                        dd.biz.telephone.call({                            users: [selectUserId], //用户列表,工号                            corpId: _config.corpId, //企业id                            onSuccess: function (info) {                                //logger.i('biz.telephone.call: info' + JSON.stringify(info));                            },                            onFail: function (err) {                                logger.e('biz.telephone.call: error' + JSON.stringify(err));                            }                        })                    } else {                        return false;                    }                } else {                    return false;                }            },            onFail: function (err) { }        });    });});dd.error(function (err) {    logger.e('dd error: ' + JSON.stringify(err));}); ------------------------- Re苹果手机使用JSAPI扫码功能提示scan err,安卓正常,什么情况?!?! <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %><!DOCTYPE HTML><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server">    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">    <meta name="viewport" content="initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width" />    <link rel="stylesheet" type="text/css" href="css/style.css" />    <link rel="stylesheet" href="http://g.alicdn.com/ilw/ding/0.2.3/styles/main.css?v=262192719_110744" type="text/css" />    <!-- config中signature由jsticket产生,若jsticket失效,则signature失效,表现为dd.error()返回“权限校验失败”之错误。 -->    <!-- 在请求新的jsticket之后,旧的ticket会失效,导致旧ticket产生的signature失效。 -->    <script type="text/javascript">        var _config = {            url: '<%=url%>',            appId: '<%=appId%>',            corpId: '<%=corpId%>',            timeStamp: '<%=timestamp%>',            nonceStr: '<%=nonceStr%>',            signature: '<%=signature%>'        };</script>    <script type="text/javascript" src="/public/javascripts/zepto.min.js"></script>    <script type="text/javascript" src="https://g.alicdn.com/ilw/ding/0.8.9/scripts/dingtalk.js"></script>    <title></title></head><body>    <form id="form1" runat="server">        <div class="carsearch">            <div class="carsearchcon">                <asp:TextBox CssClass="carsin" ID="txtKey" runat="server" placeholder="输入车牌号,如豫A66666"></asp:TextBox>                 <asp:Button CssClass="carsum" ID="btnQuery" runat="server" Text=" " OnClick="btnQuery_Click" />            </div>            <p class="recur"><a class="scan" data-method="biz.util.qrcode" data-param='{}' data-action="alert">重新扫一扫</a></p>        </div>        <h1 class="cartit">车主信息</h1>        <div class="carlist">            <div class="carcon">                <div class="carlisttit">                    车牌号                </div>                <div class="carlistcon">                    <asp:HiddenField ID="hidGuid" runat="server" />                    <asp:HiddenField ID="hidKey" runat="server" />                    <asp:Label ID="LB_CarCode" runat="server" Text=""></asp:Label>                </div>            </div>        </div>        <div class="carlist">            <div class="carcon">                <div class="carlisttit">                    车主姓名                </div>                <div class="carlistcon">                    <asp:Label ID="LB_Name" runat="server" Text=""></asp:Label>                </div>            </div>        </div>        <h1 class="cartit">办卡信息</h1>        <div class="carlist">            <div class="carcon">                <div class="carlisttit">                    卡号                </div>                <div class="carlistcon">                    <asp:Label ID="LB_CardNo" runat="server" Text=""></asp:Label>                </div>            </div>        </div>        <div class="carlist">            <div class="carcon">                <div class="carlisttit">                    办卡时间                </div>                <div class="carlistcon">                    <asp:Label ID="LB_EmitDate" runat="server" Text=""></asp:Label>                </div>            </div>        </div>        <div class="carlist">            <div class="carcon">                <div class="carlisttit">                    有效期                </div>                <div class="carlistcon">                    <asp:Label ID="LB_StartDate" runat="server" Text=""></asp:Label>                    至                    <asp:Label ID="LB_EndDate" runat="server" Text=""></asp:Label>                </div>            </div>        </div>        <div class="carlist">            <div class="carcon">                <div class="carlisttit">                    卡状态                </div>                <div class="carlistcon">                    <asp:Label ID="LB_State" runat="server" Text=""></asp:Label>                </div>            </div>        </div>        <h1 class="cartit">进出车记录(限最近50条)        </h1>        <div class="carotim">            <div class="cotconlist">                <p><asp:Literal ID="ltMsg" runat="server"></asp:Literal></p></div>            <asp:Repeater ID="RepList" runat="server">                <ItemTemplate>                    <div class="cotconlist">                        <p><%#Eval("Car_No") %> <%#Eval("Come_Date") %>-><%#Eval("Go_Date") %></p>                    </div>                </ItemTemplate>            </asp:Repeater>        </div>    </form>    <script type="text/javascript" src="/public/javascripts/logger.js"></script>    <script type="text/javascript" src="/public/javascripts/demo.js"></script></body></html> ------------------------- Re苹果手机使用JSAPI扫码功能提示scan err,安卓正常,什么情况?!?! 全部代码都在上面了,苹果手机扫描失败!安卓正常! ------------------------- Re苹果手机使用JSAPI扫码功能提示scan err,安卓正常,什么情况?!?! 学习了!!大神就是牛X

蓝小新 2019-12-02 02:45:45 0 浏览量 回答数 0
阿里云大学 云服务器ECS com域名 网站域名whois查询 开发者平台 小程序定制 小程序开发 国内短信套餐包 开发者技术与产品 云数据库 图像识别 开发者问答 阿里云建站 阿里云备案 云市场 万网 阿里云帮助文档 免费套餐 开发者工具 企业信息查询 小程序开发制作 视频内容分析 企业网站制作 视频集锦 代理记账服务 企业建站模板