call me

2021年9月2日

template上使用v-for报错

摘要: 在template标签上使用v-for报错 cannot be keyed. Place the key on real elements instead 查了一下百度,是因为key需要绑定在真实的元素上 解决方法: 1、将template标签替换成别的标签 2、将key绑定值写在别的元素上 阅读全文

posted @ 2021-09-02 15:32 黑松沙土 阅读(2631) 评论(0) 推荐(0)

iframe获取父级域名

摘要: 不跨域:parent.location或top.location 跨域:document.referrer function getParentUrl() { var url = null; if (parent !== window) { try { url = parent.location.h 阅读全文

posted @ 2021-09-02 10:35 黑松沙土 阅读(884) 评论(0) 推荐(0)

导航