Skip to content

Commit 5ee8b95

Browse files
committed
# add ko debug code
1 parent 828062f commit 5ee8b95

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

note.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2592,3 +2592,14 @@ console.log(standardDeviation) // output
25922592
```
25932593
25942594
---
2595+
2596+
## 91. debug `knockoutjs`
2597+
2598+
```js
2599+
// knockoutjs 方便调试
2600+
<!-- ko text: ko.toJSON($data) --><!-- /ko -->
2601+
2602+
<span data-bind="text: ko.toJSON($data)"></span>
2603+
```
2604+
2605+
---

0 commit comments

Comments
 (0)