Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

例子已经不能跑了my_clock #10

Open
ghost opened this issue Mar 2, 2018 · 12 comments
Open

例子已经不能跑了my_clock #10

ghost opened this issue Mar 2, 2018 · 12 comments

Comments

@ghost
Copy link

ghost commented Mar 2, 2018

image

@ghost
Copy link
Author

ghost commented Mar 2, 2018

这是log信息
image

@Sneezry
Copy link
Owner

Sneezry commented Mar 2, 2018

将popup.html中内嵌的css(style标签内的内容)分离成独立的css文件,然后通过link引入可以解决问题。

@ghost
Copy link
Author

ghost commented Mar 5, 2018

还是不能。

@Leega0
Copy link

Leega0 commented Mar 9, 2018

自己照着写了一个,没问题,你肯定是自己哪里搞错了。

@ghost
Copy link
Author

ghost commented Mar 14, 2018

急急急:求助
这个确实不能,我过几天测试一下,想请教下,如何让js发送ajax柱塞代码达到顺序执行
例如

function main()
{
    var data = get_data_from_baidu();
    console.log(data);
}

function get_data_from_baidu()
{
   var data;
   $.ajax({url:"http://baidu.com", async: false, success:function(result){
        data = result;
    }});
   return data;
}

这里已经是发送的 同步的ajax请求,我想问,这个代码会有问题吗?
由于我的机器很好,上班,老板也是直接给的服务器给我做的开发,所以
在我这边运行没问题,然而,问题是,把写的代码放到比较差的机器上
运行,表现的结果似乎是同步并不能柱塞js代码

@ghost
Copy link
Author

ghost commented Mar 14, 2018

国内做google扩展的人不是很多,也不太热,为弄了个东西,也希望你们能弄点东西,关于google扩展开发
的一些工程模版,封装google扩展的相关代码,通用的模块,将google扩展api比较简单的封装起来,达到
,每次写代码,就是到处去翻以前的项目的代码。我想的就是把这些代码都封装起来。大家有这个想法不,
我也不实为了程序的运行效率,仅仅是开发效率。

@Leega0
Copy link

Leega0 commented Mar 15, 2018

自己在这对比看看吧,ajax那个代码不是你设置了async为false和写在success就是阻塞了,想要顺序执行改为返回固定结果后判断是否执行下一步。

@ghost
Copy link
Author

ghost commented Mar 15, 2018

哎,咱们弄个交流社区吧。
这个很烦。

@ghost
Copy link
Author

ghost commented Mar 15, 2018

例子是不能跑的,反正我的电脑上不能

@qicaiyun
Copy link

获取ip的url都失效了 还跑什么跑 而且代码都是多久以前的了 也许有api更新后不规范的地方

@shanehh
Copy link

shanehh commented Jun 24, 2019

chrome_vvW5DiblSq

我这可以诶, 还是最新的开发版

@Delhpi
Copy link

Delhpi commented Sep 13, 2019

为何我 在 js文件里 加一句
window.alert(5 + 6);
var clock_div = document.getElementById('clock_div');
my_clock(clock_div);

不显示 对话框呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants