docs: better example codes (#1606)
This commit is contained in:
parent
153161b849
commit
1f38233a47
1 changed files with 2 additions and 2 deletions
|
|
@ -54,7 +54,7 @@ Let's create an HTML file to follow along:
|
||||||
|
|
||||||
```markup
|
```markup
|
||||||
<body>
|
<body>
|
||||||
<script src="http://unpkg.com/mithril/mithril.js"></script>
|
<script src="//unpkg.com/mithril/mithril.js"></script>
|
||||||
<script>
|
<script>
|
||||||
var root = document.body
|
var root = document.body
|
||||||
|
|
||||||
|
|
@ -231,7 +231,7 @@ var count = 0
|
||||||
var increment = function() {
|
var increment = function() {
|
||||||
m.request({
|
m.request({
|
||||||
method: "PUT",
|
method: "PUT",
|
||||||
url: "http://rem-rest-api.herokuapp.com/api/tutorial/1",
|
url: "//rem-rest-api.herokuapp.com/api/tutorial/1",
|
||||||
data: {count: count + 1},
|
data: {count: count + 1},
|
||||||
withCredentials: true,
|
withCredentials: true,
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue