如何更改此iframe

时间:2019-05-12 17:36:57

标签: javascript

当我在游戏中打开手机应用程序时,在手机上显示9gag帖子。我要更改9gag帖子。我想改用一个简单的iframe页面。示例https://www.google.com我该怎么做?用于FiveM的gcphone应用程序的代码。

 methods: {
            loadItems: function() {
                var t = this;
                return c()(i.a.mark(function e() {
                    var n, s, o, r;
                    return i.a.wrap(function(e) {
                        for (;;) switch (e.prev = e.next) {
                            case 0:
                                return s = "https://9gag.com/v1/group-posts/group/default/type/hot?" + t.nextCursor, e.next = 3, fetch(s);
                            case 3:
                                return o = e.sent, e.next = 6, o.json();
                            case 6:
                                r = e.sent, (n = t.posts).push.apply(n, a()(r.data.posts)), t.nextCursor = r.data.nextCursor;
                            case 9:
                            case "end":
                                return e.stop()
                        }
                    }, e, t)
                }))()
            }

代码在这里https://jsfiddle.net/Lhbkxmo6/

如果有人可以提供帮助,我将非常高兴。从现在开始谢谢你。

0 个答案:

没有答案
相关问题