Skip to content

Commit

Permalink
修复 文档中的几处错误
Browse files Browse the repository at this point in the history
  • Loading branch information
wkpcoder authored and dcloud-wandl committed Jul 27, 2020
1 parent f174510 commit 7f51020
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions ExtensionDocs/Api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -461,15 +461,13 @@ viewId需要在package.json文件内的配置扩展点[views](/ExtensionDocs/Con
#### 示例
```Javascript
let webviewPanel = hx.window.createWebView("viewId",{
enableScritps:true
enableScripts:true
});
let webview = webviewPanel.WebView;
webview.html = `
<script>
// 以下两种写法等同
hbuilderx.onDidReceiveMessage((msg)=>{
});
window.addEventListener("message",(msg)=>{
});
hbuiderx.postMessage({
command: 'alert',
Expand Down
2 changes: 1 addition & 1 deletion ExtensionDocs/ContributionPoints/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ snippets扩展点可以扩展指定编程语言的代码块,可扩展的编程
"viewsContainers": {
"rightside":[
{
//该id需要和window.createWebView中的viewId参数一致
"id":"containerId",
"title":"Container Title"
}
Expand All @@ -179,6 +178,7 @@ snippets扩展点可以扩展指定编程语言的代码块,可扩展的编程
"views": {
"containerId":[
{
//该id需要和window.createWebView中的viewId参数一致
"id":"viewId",
"title":"Custom View Title"
}
Expand Down

0 comments on commit 7f51020

Please sign in to comment.