17.12.4日报

来源:互联网 发布:清华直博生待遇 知乎 编辑:程序博客网 时间:2024/05/17 00:46
1,找到http://www.xinhuanet.com 图片显示不了的原因,curl没打开zip宏

2,找到https://pan.toaone.com  打不开的原因,wolfssl可能某个宏没开,用回openssl就可以了

3,找到http://so.news.cn/#search/0/%E6%90%9C%E7%B4%A2/1 不停刷新的原因了。


下面是堆栈。可以看出如果url的hash有变化,[r.handle]就会调用到 [i.extend.navigate]

这网页写的没考虑兼容webkit,只兼容了ie和chrome
这网页会调用Location::setHash把函数设置进去
webkit会把汉字escape
chrome不会

导致下次去出来的url Fragment不一样,然后这网页就继续设置hash,死循环了

4,继续看so.news.cn会乱码的问题。原因是KURL输出的是utf8,而Location::hash返回给js,js再设置到input里,blink会把这段字符串当成ascii的。

现在打算把kurl返回的改成utf16

===========================================================

i.extend.set (base.min.js:formatted:6443) 设置keyword的值
Backbone.View.extend.changeType (resultView.js?v=20170215:68)
Backbone.Router.extend.setView (router.js?v=20170215:50)
Backbone.Router.extend.init (router.js?v=20170215:35)
i.extend.execute (base.min.js:formatted:7170)
(anonymous function) (base.min.js:formatted:7160)
(anonymous function) (base.min.js:formatted:7308)
_.some._.any (base.min.js:formatted:4869)
i.extend.loadUrl (base.min.js:formatted:7306)
i.extend.start (base.min.js:formatted:7279)
(anonymous function) (router.js?v=20170215:61)
t.exec (sea.js:2)
t.use.e.callback (sea.js:2)
t.onload (sea.js:2)
t.load (sea.js:2)
d (sea.js:2)
onload (seajs-css.js:110)






====
line:6272, [http://tmisc.home.news.cn/search/font/js/base.min.js] , [i.extend._updateHash]
line:6257, [http://tmisc.home.news.cn/search/font/js/base.min.js] , [i.extend.navigate]
line:6109, [http://tmisc.home.news.cn/search/font/js/base.min.js] , [i.extend.navigate]
line:93, [http://tmisc.home.news.cn/search/font/js/search/router.js?v=20170215] , [Backbone.Router.extend.setHash]
line:15, [http://tmisc.home.news.cn/search/font/js/search/view/resultCom.js?v=20170215] , []
line:5400, [http://tmisc.home.news.cn/search/font/js/base.min.js] , [f]
line:5346, [http://tmisc.home.news.cn/search/font/js/base.min.js] , [e.Events.trigger]
line:5494, [http://tmisc.home.news.cn/search/font/js/base.min.js] , [i.extend.set]
line:68, [http://tmisc.home.news.cn/search/font/js/search/view/resultView.js?v=20170215] , [Backbone.View.extend.changeType]
line:50, [http://tmisc.home.news.cn/search/font/js/search/router.js?v=20170215] , [Backbone.Router.extend.setView]
line:35, [http://tmisc.home.news.cn/search/font/js/search/router.js?v=20170215] , [Backbone.Router.extend.init]
line:6106, [http://tmisc.home.news.cn/search/font/js/base.min.js] , [i.extend.execute]
line:6098, [http://tmisc.home.news.cn/search/font/js/base.min.js] , []
line:6238, [http://tmisc.home.news.cn/search/font/js/base.min.js] , []
line:4093, [http://tmisc.home.news.cn/search/font/js/base.min.js] , [_.some._.any]
line:6235, [http://tmisc.home.news.cn/search/font/js/base.min.js] , [i.extend.loadUrl]
line:6211, [http://tmisc.home.news.cn/search/font/js/base.min.js] , [i.extend.start]
line:61, [http://tmisc.home.news.cn/search/font/js/search/router.js?v=20170215] , []
line:2, [http://tmisc.home.news.cn/search/font/js/base/sea.js] , [t.exec]
line:2, [http://tmisc.home.news.cn/search/font/js/base/sea.js] , [e.callback]
line:2, [http://tmisc.home.news.cn/search/font/js/base/sea.js] , [t.onload]
line:2, [http://tmisc.home.news.cn/search/font/js/base/sea.js] , [t.load]
line:2, [http://tmisc.home.news.cn/search/font/js/base/sea.js] , [d]
line:143, [http://tmisc.home.news.cn/search/font/js/base/seajs-css.js] , []


----


line:6272, [http://tmisc.home.news.cn/search/font/js/base.min.js] , [i.extend._updateHash]
line:6257, [http://tmisc.home.news.cn/search/font/js/base.min.js] , [i.extend.navigate]
line:6109, [http://tmisc.home.news.cn/search/font/js/base.min.js] , [i.extend.navigate]
line:93, [http://tmisc.home.news.cn/search/font/js/search/router.js?v=20170215] , [Backbone.Router.extend.setHash]
line:15, [http://tmisc.home.news.cn/search/font/js/search/view/resultCom.js?v=20170215] , []
line:5400, [http://tmisc.home.news.cn/search/font/js/base.min.js] , [f]
line:5346, [http://tmisc.home.news.cn/search/font/js/base.min.js] , [e.Events.trigger]
line:5494, [http://tmisc.home.news.cn/search/font/js/base.min.js] , [i.extend.set]
line:68, [http://tmisc.home.news.cn/search/font/js/search/view/resultView.js?v=20170215] , [Backbone.View.extend.changeType]
line:50, [http://tmisc.home.news.cn/search/font/js/search/router.js?v=20170215] , [Backbone.Router.extend.setView]
line:35, [http://tmisc.home.news.cn/search/font/js/search/router.js?v=20170215] , [Backbone.Router.extend.init]
line:6106, [http://tmisc.home.news.cn/search/font/js/base.min.js] , [i.extend.execute]
line:6098, [http://tmisc.home.news.cn/search/font/js/base.min.js] , []
line:6238, [http://tmisc.home.news.cn/search/font/js/base.min.js] , []
line:4093, [http://tmisc.home.news.cn/search/font/js/base.min.js] , [_.some._.any]
line:6235, [http://tmisc.home.news.cn/search/font/js/base.min.js] , [i.extend.loadUrl]
line:6231, [http://tmisc.home.news.cn/search/font/js/base.min.js] , [i.extend.checkUrl]
line:1733, [http://tmisc.home.news.cn/search/font/js/base.min.js] , [m.event.dispatch]
line:1649, [http://tmisc.home.news.cn/search/font/js/base.min.js] , [r.handle]

原创粉丝点击