You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After you select a element, you can operate it with some [methods](./api.md).
51
+
Either you select a single element or a list of elements, you can operate them with some [methods](./api.md).
52
+
53
+
### Using FastjsDom
54
+
55
+
After you select a **FastjsDom** element, you can operate it with some [methods](./api.md).
42
56
43
57
```typescript
44
58
dom.select("h1")!.html("Hello World");
45
59
```
46
60
61
+
### Using FastjsDomList
62
+
63
+
:::tip
64
+
If there are a same method in **FastjsDom** and **FastjsDomList**, fastjs will use the method of **FastjsDomList**.
65
+
66
+
For example, `each` method is in both **FastjsDom** and **FastjsDomList**, but when you use `each` method on **FastjsDomList**, `FastjsDomList.each` will be called.
67
+
:::
68
+
69
+
There are some special methods for **FastjsDomList**. But you can also use the methods of **FastjsDom**.
70
+
71
+
When you are using the methods of **FastjsDom** on **FastjsDomList**, it will apply to all elements in the list one by one.
0 commit comments