Visualforce Page超链接

  1. Salesforce开发者文档:https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_quick_start_query_params_setting.htm
  2. 代码

    <apex:page sidebar="false" standardController="Contact">
    <apex:outputLink value="http://google.com/search?q={!contact.name}">
    Search Google
    </apex:outputLink>
    </apex:page>

  3. 效果(Visualforce Page 类似于前端页面,这段代码实现:显示超链接,点击跳转到Google主页面,类似于html的a标签,standardController="Contact"表示系统的控制器,q={!contact.name}表示当前链接在Contacts下显示,也可以换成在Account标签卡下显示,同时需要把控制器改为Account)
原文地址:https://www.cnblogs.com/android-it/p/6795938.html