This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
FumaoPublic
/
boxB
Watch
7
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
【测试postmessa通信】
master
GL
4 years ago
parent
f43fd0d432
commit
c39ecfb8d0
1 changed files
with
3 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-1
src/views/login/index.vue
+ 3
- 1
src/views/login/index.vue
View File
@@ -72,13 +72,15 @@ export default {
})
},
},
mounted() {
console.log(123);
window.addEventListener('message',function(event){
console.log(event,'++////***');
console.log( "收到" + event.origin + "消息:" + event.data);
}, false);
},
}
};
</script>
Write
Preview
Loading…
Cancel
Save