1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
| <template>
| <view>
| <text>这是子页面1的内容</text>
| <text>参数1: {{ param1 }}</text>
| <text>参数2: {{ param2 }}</text>
| </view>
| </template>
|
| <script>
| export default {
| // name: 'SubPage1',
| props: {
| param1: {
| type: String,
| default: ''
| },
| param2: {
| type: String,
| default: ''
| }
| },
| created() {
| console.log('SubPage1 created with param1:', this.param1);
| console.log('SubPage1 created with param2:', this.param2);
| }
| }
| </script>
|
|