微信 WeixinJSBridge API

本贴最后更新于 2592 天前,其中的信息可能已经时过境迁

< !DOCTYPE html>
< html>
< head>< title> 微信 WeixinJSBridge API< /title>
< meta charset=utf-8>

< /head>
< body>< section class=mod-page-body>
< div class="mod-page-main wordwrap clearfix">
< div class=mod-pageheader>< /div>
< div class=mod-pagecontent>
< div class=mod-weixinjsapi>
< div class=x-desc> 微信客户端自带的 Js Api:WeixinJSBridge< /div>
< div id=WeixinJsApi>
< input type=button id=imagePreview value="图片预览">< /input>
< input type=button id=profile value="查看 profile">< /input>
< a href="> 企业微信小助手 < /a>
< input type=button id=shareWeibo value="分享微博">< /input>
< input type=button id=shareFB value="分享 facebook">< /input>
< input type=button id=addContact value="添加联系人">< /input>
< input type=button id=scanQRCode value="扫描二维码">< /input>
< input type=button id=jumpToBizProfile value="跳转到指定公众账号页面">< /input>
< input type=button id=toggleMenuBtn value="隐藏右上角按钮">< /input>
< input type=button id=toggleToolbar value="隐藏底部导航栏">< /input>
< input type=button id=getNetType value="获取网络状态">< /input>
< input type=button id=closeWindow value="关闭">< /input>
< input type=button id=getBrandWCPayRequest value="发起公众号微信支付">< /input>
< input type=button id=setPageState value="设置页面状态">< /input>
< input type=button id=sendEmail value="发邮件">< /input>
< input type=button id=openSpecificView value="微信团队打开 webView,跳到指定页面">< /input>
< input type=button id=getCanIAPPay value="getCanIAPPay">< /input>
< input type=button id=getBrandIAPPayRequest value="发起公众号 IAP 支付">< /input>
< input type=button id=openUrlByExtBrowser value="用 safari 打开指定链接">< /input>
< input type=button id=openProductView value="跳转微信商品页">< /input>
< input type=button id=openLocation value="查看地理位置">< /input>
< input type=button id=timelineCheckIn value="朋友圈签到">< /input>
< input type=button id=getBrandWCPayCreateCreditCardRequest value="开通微信信用卡">< /input>
< input type=button id=geoLocation value="获取地理位置">< /input>
< input type=button id=getInstallState value="获取某 app 是否安装">< /input>
< input type=button id=editAddress value="公众号编辑收货地址">< /input>
< input type=button id=getLatestAddress value="公众号获取最近的收货地址">< /input>
< input type=button id=launch3rdApp value="启动第三方 APP">< /input>
< input type=button id=jumpWCMall value="跳转微信商品购买界面">< /input>
< input type=button id=addEmoticon value="添加表情">< /input>
< input type=button id=cancelAddEmoticon value="取消下载某表情">< /input>
< input type=button id=hasEmoticon value="查询是否存在某表情">< /input>

    < /div>
< /div>

< /div>
< /div>
< /section>

javascript 代码如下:

(function(){
  var a=document.getElementsByTagName("html")[0];
  window.Session={appDomain:a.getAttribute("data-app-domain")||"",staticDomain:a.getAttribute("data-static-domain")||""}
  })();

  window.registNS=function(fullNS,isIgnorSelf){
  var reg=/^[_$a-z]+[_$a-z0-9]*/i;var nsArray=fullNS.split(".");
  var sEval="";
  var sNS="";
  var n=isIgnorSelf?nsArray.length-1:nsArray.length;
  for(var i=0;i< n;i++){
	  if(!reg.test(nsArray[i])){throw new Error("Invalid namespace:"+nsArray[i]+"");
	  return
	}
	if(i!=0){sNS+="."}
	sNS+=nsArray[i];
	sEval+="if(typeof("+sNS+")=='undefined') "+sNS+"=new Object();
	else "+sNS+";"
}
if(sEval!=""){
return eval(sEval)
}
return{}

};


function onBridgeReady() {
WeixinJSBridge.on('menu:share:appmessage', function(argv) 
{
    WeixinJSBridge.invoke('sendAppMessage',{
                "link":"http://m.exmail.qq.com/",
                "desc":"desc",
                "title":"title for WeiXinJsBridge"
    }, function(res) {
        WeixinJSBridge.log(res.err_msg);
    });
});

WeixinJSBridge.on('menu:share:timeline', function(argv) 
{
WeixinJSBridge.invoke("shareTimeline",{
    "link":"http://m.exmail.qq.com",
    "img_url":"http://rescdn.qqmail.com/bizmail/zh_CN/htmledition/images/bizmail/v3/logo1ca3fe.png",
    "img_width":"172",
    "img_height":"40",
    "desc":"i am description",
    "title":"just test from WeixinJsBridge"
    },
    function(e){
    alert(e.err_msg);
    })
});
}

if (typeof WeixinJSBridge === "undefined") {
	if (document.addEventListener){
    document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false);
	}
} else {
	onBridgeReady();
}

var menuHidden=!1,toolbarHidden=!1,netType={"network_type:wifi":"wifi网络","network_type:edge":"非wifi,包含3G/2G","network_type:fail":"网络断开连接","network_type:wwan":"2g或者3g"};
document.addEventListener("WeixinJSBridgeReady",function(){
        document.getElementById("imagePreview").addEventListener(
        "click",function(){
                            WeixinJSBridge.invoke("imagePreview",{
            "urls":[
            "http://rescdn.qqmail.com/bizmail/zh_CN/htmledition/images/bizmail/v3/logo1ca3fe.png",
            "http://rescdn.qqmail.com/bizmail/zh_CN/htmledition/images/bizmail/v3/icons_features1ca3fe.png",
            "http://rescdn.qqmail.com/bizmail/zh_CN/htmledition/images/bizmail/v3/icons_workStyle1ca3fe.png"
            ],
            "current":"http://rescdn.qqmail.com/bizmail/zh_CN/htmledition/images/bizmail/v3/icons_features1ca3fe.png"
            })
                    },!1),
    document.getElementById("profile").addEventListener(
        "click",function(){
            alert("profile clicked");
            WeixinJSBridge.invoke("profile",{
                "username":"gh_412d74fbb474",
                "nickname":"企业微信小助手"    
            })
        },!1),
    document.getElementById("shareWeibo").addEventListener(
        "click",function(){
            WeixinJSBridge.invoke("shareWeibo",{
                "type":"link",
                "link":"http://m.exmail.qq.com"
            },
            function(e){
                alert(e.err_msg);
            })
        },!1),
    document.getElementById("shareFB").addEventListener(
        "click",function(){
            WeixinJSBridge.invoke("shareFB",{
                "link":"http://m.exmail.qq.com"
            })
        },!1),
    document.getElementById("scanQRCode").addEventListener(
        "click",function(){
            WeixinJSBridge.invoke("scanQRCode",{
            })
        },!1),
    document.getElementById("addEmoticon").addEventListener(
        "click",function(){
            WeixinJSBridge.invoke("addEmoticon",{
                "url":"http://rescdn.qqmail.com/bizmail/zh_CN/htmledition/images/bizmail/v3/icons_features1ca3fe.png",
                "thumb_url":"http://rescdn.qqmail.com/bizmail/zh_CN/htmledition/images/bizmail/v3/logo1ca3fe.png"

            },
            function(e){
                                    alert(e.err_msg);
                            })
        },!1),
    document.getElementById("cancelAddEmoticon").addEventListener(
        "click",function(){
            WeixinJSBridge.invoke("cancelAddEmoticon",{
                "url":"http://rescdn.qqmail.com/bizmail/zh_CN/htmledition/images/bizmail/v3/icons_features1ca3fe.png"

            },
            function(e){
                                    alert(e.err_msg);
                            })
        },!1),
    document.getElementById("hasEmoticon").addEventListener(
        "click",function(){
            WeixinJSBridge.invoke("hasEmoticon",{
                "url":"http://rescdn.qqmail.com/bizmail/zh_CN/htmledition/images/bizmail/v3/icons_features1ca3fe.png"

            },
            function(e){
                                    alert(e.err_msg);
                            })
        },!1),
    document.getElementById("addContact").addEventListener(
        "click",function(){
            WeixinJSBridge.invoke("addContact",{
                "webtype":"1",
                "username":"gh_412d74fbb474"
            },
            function(e){
                alert(e.err_msg);
            })
        },!1),
    document.getElementById("jumpToBizProfile").addEventListener(
        "click",function(){
            WeixinJSBridge.invoke("jumpToBizProfile",{
                "tousername":"gh_2248a2ade13e"
            },
            function(e){
                alert(e.err_msg);
            })
        },!1),
    document.getElementById("toggleMenuBtn").addEventListener(
        "click",function(){
            menuHidden?
            (WeixinJSBridge.call("showOptionMenu"),menuHidden=!1,this.value="隐藏右上角按钮")
            :
            (WeixinJSBridge.call("hideOptionMenu"),menuHidden=!0,this.value="显示右上角按钮")
        },!1),
    document.getElementById("toggleToolbar").addEventListener(
        "click",function(){
            toolbarHidden?
            (WeixinJSBridge.call("showToolbar"),toolbarHidden=!1,this.value="隐藏底部导航栏")
            :
            (WeixinJSBridge.call("hideToolbar"),toolbarHidden=!0,this.value="显示底部导航栏")
        },!1),
    document.getElementById("getNetType").addEventListener(
        "click",function(){
            WeixinJSBridge.invoke("getNetworkType",{},
                function(e){
                    alert(netType[e.err_msg])
                })
        },!1),
     document.getElementById("closeWindow").addEventListener(
                    "click",function(){
                            WeixinJSBridge.invoke("closeWindow",{},function(e){})
                    },!1),
    document.getElementById("getBrandWCPayRequest").addEventListener(
        "click",function(){
        WeixinJSBridge.invoke("getBrandWCPayRequest",{
            "appId" : "wxf8b4f85f3a794e77", //公众号名称,由商户传⼊入
            "timeStamp" : "189026618", //时间戳 这⾥里随意使⽤用了⼀一个值
            "nonceStr" : "adssdasssd13d", //随机串
            "package" :
            "body=xxx&fee_type=1&input_charset=GBK&notify_url=http&out_trade_no=16642817866003386000&partner=1900000109&return_url=http&spbill_create_ip=127.0.0.1&total_fee=1&sign=273B7EEEE642A8E41F27213D8517E0E4", //扩展字段,由商户传⼊入
            "signType" : "SHA1", //微信签名⽅方式:sha1
            "paySign" : "b737015b5b1eabe5db580945a07eac08c7bb55f8" //微信签名
            },
            function(e){
                alert(e.err_msg)
            })
        },!1),
    document.getElementById("setPageState").addEventListener(
        "click",function(){
        WeixinJSBridge.invoke("setPageState",{
            "state" : "1"
            })
        },!1),

    document.getElementById("sendEmail").addEventListener(
        "click",function(){
        WeixinJSBridge.invoke("sendEmail",{
            "title" : "title!",
            "content" : "i am an Email!", //时间戳 这⾥里随意使⽤用了⼀一个值
            },
            function(e){
    //          alert(e.err_msg)
            })
        },!1),
    document.getElementById("openSpecificView").addEventListener(
        "click",function(){
        WeixinJSBridge.invoke("openSpecificView",{
            "specificview" : "contacts"
            },
            function(e){
                alert(e.err_msg)
            })
        },!1),
    document.getElementById("getCanIAPPay").addEventListener(
        "click",function(){
        WeixinJSBridge.invoke("getCanIAPPay",{  },
            function(e){
                alert(e.err_msg)
            })
        },!1),
    document.getElementById("getBrandIAPPayRequest").addEventListener(
        "click",function(){
        WeixinJSBridge.invoke("getBrandIAPPayRequest",{
            "appId" : "wxf8b4f85f3a794e77", //公众号名称,由商户传⼊入
            "timeStamp" : "189026618", //时间戳 这⾥里随意使⽤用了⼀一个值
            "nonceStr" : "adssdasssd13d", //随机串
            "package" : "bankType=CITIC_CREDIT&bankName=%e4%b8%ad%e4%bf%a1%e9%93%b6%e8%a1%8c&sign=CF8922F49431FFE8A1834D0B32B25CE3",
            //扩展字段,由商户传⼊入
            "signType" : "SHA1", //微信签名⽅方式:sha1
            "paySign" : "1e6f13f78ca0ec43fbb80899087f77568af66987" //微信签名
            },
            function(e){
                alert(e.err_msg)
            })
        },!1),
    document.getElementById("openLocation").addEventListener(
        "click",function(){
        WeixinJSBridge.invoke("openProductView",{   
            "latitude" : 23.113, //纬度
            "longitude" : 113.23, //经度
            "name" : "TIT创意园", //POI名称
            "address" : "⼲⼴广州市海珠区新港中路397号", //地址
            "scale" : 14, //地图缩放级别
            "infoUrl" : "http://weixin.qq.com/", //查看位置界⾯面底部的超链接                
            },
            function(e){
                alert(e.err_msg)
            })
        },!1),
    document.getElementById("timelineCheckIn").addEventListener(
        "click",function(){
        WeixinJSBridge.invoke("timelineCheckIn",{   
            "img_url": "http://mmsns.qpic.cn/mmsns/RLllkTm3DUdV24xbZnKicx9jJWxXI0Bq84zzbtibGuRyk/0", // 分享到朋友圈的缩略图
            "img_width": "640", // 图⽚片的⻓长度
            "img_height": "640", // 图⽚片⾼高度
            "link": "http://news.qq.com/zt2012/cxkyym/index.htm", // 连接地址
            "desc": "这个是描述啊啊", // 描述
            "title": "朝鲜称中国渔船越界捕捞", // 分享标题
            "latitude" : 23.113, //纬度
            "longitude" : 113.23, //经度
            "poiId" : "dianping_2331037", //商户id
            "poiName" : "TIT创意园", //POI名称
            "poiAddress" : "⼲⼴广州市海珠区新港中路397号", //地址
            "poiScale" : 14, //地图缩放级别
            "poiInfoUrl" : "http://weixin.qq.com/" //查看位置界⾯面底部的超链接
            },
            function(e){
                alert(e.err_msg)
            })
        },!1),
    document.getElementById("geoLocation").addEventListener(
        "click",function(){
        WeixinJSBridge.invoke("geoLocation",{   
            },
            function(e){
                alert(e.err_msg)
            })
        },!1),
    document.getElementById("getBrandWCPayCreateCreditCardRequest").addEventListener(
        "click",function(){
        WeixinJSBridge.invoke("getBrandWCPayCreateCreditCardRequest",{  
            "appId" : "wxf8b4f85f3a794e77", //公众号名称,由商户传⼊入
            "timeStamp" : "189026618", //时间戳 这⾥里随意使⽤用了⼀一个值
            "nonceStr" : "adssdasssd13d", //随机串
            "package" : "bankType=CITIC_CREDIT&bankName=%e4%b8%ad%e4%bf%a1%e9%93%b6%e8%a1%8c&sign= CF8922F49431FFE8A1834D0B32B25CE3",
            //扩展字段,由商户传⼊入
            "signType" : "SHA1", //微信签名⽅方式:sha1
            "paySign" : "1e6f13f78ca0ec43fbb80899087f77568af66987" //微信签名
            },
            function(e){
                alert(e.err_msg)
            })
        },!1),
    document.getElementById("getInstallState").addEventListener(
        "click",function(){
        WeixinJSBridge.invoke("getInstallState",{   
                "packageUrl":"teamcircle://"
            },
            function(e){
                alert(e.err_msg)
            })
        },!1),
    document.getElementById("openProductView").addEventListener(
        "click",function(){
        WeixinJSBridge.invoke("openProductView",{   
                "productInfo":"json"
            },
            function(e){
                alert(e.err_msg)
            })
        },!1),
    document.getElementById("getLatestAddress").addEventListener(
            "click",function(){
            WeixinJSBridge.invoke("getLatestAddress",{  
                "appId" : "wxf8b4f85f3a794e77", //公众号名称,由商户传⼊入
                "timeStamp" : "189026618", //时间戳 这⾥里随意使⽤用了⼀一个值
                "nonceStr" : "adssdasssd13d", //随机串
                "signType" : "SHA1", //微信签名⽅方式:sha1
                "addrSign" : "b737015b5b1eabe5db580945a07eac08c7bb55f8", //微信签名
                "scope"    : "snsapi"
            },
            function(e){
                alert(e.err_msg)
            })
        },!1),
    document.getElementById("editAddress").addEventListener(
            "click",function(){
            WeixinJSBridge.invoke("editAddress",{   
                "appId" : "wxf8b4f85f3a794e77", //公众号名称,由商户传⼊入
                "timeStamp" : "189026618", //时间戳 这⾥里随意使⽤用了⼀一个值
                "nonceStr" : "adssdasssd13d", //随机串
                "signType" : "SHA1", //微信签名⽅方式:sha1
                "addrSign" : "b737015b5b1eabe5db580945a07eac08c7bb55f8", //微信签名
                "scope"    : "snsapi"
            },
            function(e){
                alert(e.err_msg)
            })
        },!1),
    document.getElementById("launch3rdApp").addEventListener(
            "click",function(){
            WeixinJSBridge.invoke("launch3rdApp",{  
                "appId" : "wx5823bf96d3bd56c7", //公众号名称,由商户传⼊入
            },
            function(e){
                alert(e.err_msg)
            })
        },!1),
    document.getElementById("jumpWCMall").addEventListener(
            "click",function(){
            WeixinJSBridge.invoke("jumpWCMall",{    
                "appId" : "wx5823bf96d3bd56c7", //公众号名称,由商户传⼊入
                "funcId":"1000"
            },
            function(e){
                alert(e.err_msg)
            })
        },!1),
    document.getElementById("openUrlByExtBrowser").addEventListener(
        "click",function(){
        WeixinJSBridge.invoke("openUrlByExtBrowser",{
            "url" : "http://m.exmail.qq.com"
            },
            function(e){
                alert(e.err_msg)
            })
        },!1)
    }
);

===================================================================================

  • B3log

    B3log 是一个开源组织,名字来源于“Bulletin Board Blog”缩写,目标是将独立博客与论坛结合,形成一种新的网络社区体验,详细请看 B3log 构思。目前 B3log 已经开源了多款产品:SymSoloVditor思源笔记

    1083 引用 • 3461 回帖 • 285 关注

相关帖子

欢迎来到这里!

我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。

注册 关于
请输入回帖内容 ...

推荐标签 标签

  • MySQL

    MySQL 是一个关系型数据库管理系统,由瑞典 MySQL AB 公司开发,目前属于 Oracle 公司。MySQL 是最流行的关系型数据库管理系统之一。

    675 引用 • 535 回帖
  • 宕机

    宕机,多指一些网站、游戏、网络应用等服务器一种区别于正常运行的状态,也叫“Down 机”、“当机”或“死机”。宕机状态不仅仅是指服务器“挂掉了”、“死机了”状态,也包括服务器假死、停用、关闭等一些原因而导致出现的不能够正常运行的状态。

    13 引用 • 82 回帖 • 38 关注
  • IDEA

    IDEA 全称 IntelliJ IDEA,是一款 Java 语言开发的集成环境,在业界被公认为最好的 Java 开发工具之一。IDEA 是 JetBrains 公司的产品,这家公司总部位于捷克共和国的首都布拉格,开发人员以严谨著称的东欧程序员为主。

    180 引用 • 400 回帖
  • OpenShift

    红帽提供的 PaaS 云,支持多种编程语言,为开发人员提供了更为灵活的框架、存储选择。

    14 引用 • 20 回帖 • 604 关注
  • Vditor

    Vditor 是一款浏览器端的 Markdown 编辑器,支持所见即所得、即时渲染(类似 Typora)和分屏预览模式。它使用 TypeScript 实现,支持原生 JavaScript、Vue、React 和 Angular。

    314 引用 • 1667 回帖 • 1 关注
  • Angular

    AngularAngularJS 的新版本。

    26 引用 • 66 回帖 • 511 关注
  • Chrome

    Chrome 又称 Google 浏览器,是一个由谷歌公司开发的网页浏览器。该浏览器是基于其他开源软件所编写,包括 WebKit,目标是提升稳定性、速度和安全性,并创造出简单且有效率的使用者界面。

    60 引用 • 287 回帖
  • 工具

    子曰:“工欲善其事,必先利其器。”

    275 引用 • 682 回帖
  • CentOS

    CentOS(Community Enterprise Operating System)是 Linux 发行版之一,它是来自于 Red Hat Enterprise Linux 依照开放源代码规定释出的源代码所编译而成。由于出自同样的源代码,因此有些要求高度稳定的服务器以 CentOS 替代商业版的 Red Hat Enterprise Linux 使用。两者的不同在于 CentOS 并不包含封闭源代码软件。

    238 引用 • 224 回帖 • 1 关注
  • Bug

    Bug 本意是指臭虫、缺陷、损坏、犯贫、窃听器、小虫等。现在人们把在程序中一些缺陷或问题统称为 bug(漏洞)。

    77 引用 • 1741 回帖
  • Jenkins

    Jenkins 是一套开源的持续集成工具。它提供了非常丰富的插件,让构建、部署、自动化集成项目变得简单易用。

    51 引用 • 37 回帖
  • Google

    Google(Google Inc.,NASDAQ:GOOG)是一家美国上市公司(公有股份公司),于 1998 年 9 月 7 日以私有股份公司的形式创立,设计并管理一个互联网搜索引擎。Google 公司的总部称作“Googleplex”,它位于加利福尼亚山景城。Google 目前被公认为是全球规模最大的搜索引擎,它提供了简单易用的免费服务。不作恶(Don't be evil)是谷歌公司的一项非正式的公司口号。

    49 引用 • 192 回帖
  • Sym

    Sym 是一款用 Java 实现的现代化社区(论坛/BBS/社交网络/博客)系统平台。

    下一代的社区系统,为未来而构建

    523 引用 • 4581 回帖 • 690 关注
  • V2Ray
    1 引用 • 15 回帖 • 1 关注
  • React

    React 是 Facebook 开源的一个用于构建 UI 的 JavaScript 库。

    192 引用 • 291 回帖 • 443 关注
  • PHP

    PHP(Hypertext Preprocessor)是一种开源脚本语言。语法吸收了 C 语言、 Java 和 Perl 的特点,主要适用于 Web 开发领域,据说是世界上最好的编程语言。

    164 引用 • 407 回帖 • 526 关注
  • 支付宝

    支付宝是全球领先的独立第三方支付平台,致力于为广大用户提供安全快速的电子支付/网上支付/安全支付/手机支付体验,及转账收款/水电煤缴费/信用卡还款/AA 收款等生活服务应用。

    29 引用 • 347 回帖
  • HHKB

    HHKB 是富士通的 Happy Hacking 系列电容键盘。电容键盘即无接点静电电容式键盘(Capacitive Keyboard)。

    5 引用 • 74 回帖 • 407 关注
  • 锤子科技

    锤子科技(Smartisan)成立于 2012 年 5 月,是一家制造移动互联网终端设备的公司,公司的使命是用完美主义的工匠精神,打造用户体验一流的数码消费类产品(智能手机为主),改善人们的生活质量。

    4 引用 • 31 回帖 • 10 关注
  • Sillot

    Sillot (汐洛)孵化自思源笔记,致力于服务智慧新彖乄,具有彖乄驱动、极致优雅、开发者友好的特点
    Github 地址:https://github.com/Hi-Windom/Sillot

    16 引用 • 6 回帖 • 28 关注
  • 前端

    前端技术一般分为前端设计和前端开发,前端设计可以理解为网站的视觉设计,前端开发则是网站的前台代码实现,包括 HTML、CSS 以及 JavaScript 等。

    247 引用 • 1347 回帖
  • 反馈

    Communication channel for makers and users.

    123 引用 • 906 回帖 • 193 关注
  • CloudFoundry

    Cloud Foundry 是 VMware 推出的业界第一个开源 PaaS 云平台,它支持多种框架、语言、运行时环境、云平台及应用服务,使开发人员能够在几秒钟内进行应用程序的部署和扩展,无需担心任何基础架构的问题。

    5 引用 • 18 回帖 • 153 关注
  • Unity

    Unity 是由 Unity Technologies 开发的一个让开发者可以轻松创建诸如 2D、3D 多平台的综合型游戏开发工具,是一个全面整合的专业游戏引擎。

    25 引用 • 7 回帖 • 245 关注
  • Python

    Python 是一种面向对象、直译式电脑编程语言,具有近二十年的发展历史,成熟且稳定。它包含了一组完善而且容易理解的标准库,能够轻松完成很多常见的任务。它的语法简捷和清晰,尽量使用无异义的英语单词,与其它大多数程序设计语言使用大括号不一样,它使用缩进来定义语句块。

    536 引用 • 672 回帖 • 1 关注
  • SMTP

    SMTP(Simple Mail Transfer Protocol)即简单邮件传输协议,它是一组用于由源地址到目的地址传送邮件的规则,由它来控制信件的中转方式。SMTP 协议属于 TCP/IP 协议簇,它帮助每台计算机在发送或中转信件时找到下一个目的地。

    4 引用 • 18 回帖 • 589 关注
  • JRebel

    JRebel 是一款 Java 虚拟机插件,它使得 Java 程序员能在不进行重部署的情况下,即时看到代码的改变对一个应用程序带来的影响。

    26 引用 • 78 回帖 • 624 关注