- Salesforce开发者文档:https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_quick_start_query_params_setting.htm
- 代码
<apex:page sidebar="false" standardController="Contact">
<apex:outputLink value="http://google.com/search?q={!contact.name}">
Search Google
</apex:outputLink>
</apex:page> - 效果(Visualforce Page 类似于前端页面,这段代码实现:显示超链接,点击跳转到Google主页面,类似于html的a标签,standardController="Contact"表示系统的控制器,q={!contact.name}表示当前链接在Contacts下显示,也可以换成在Account标签卡下显示,同时需要把控制器改为Account)