hanaarena / pp-client Goto Github PK
View Code? Open in Web Editor NEW冒泡刷起来!
冒泡刷起来!
uh.
直接使用$http.post()调用coding登录api(http://api-doc.coding.io/#panel__account_login )会报CORS,但是会返回一个无法使用的sid.转用jsonp来调这个接口的话会一直报400,这时sid都不返回了.
idea:根据http://api-doc.coding.io/#panel__account_login 这里提到的,先在coding.net登录,再使用jsonp调用则可以获得可用的sid(虽然还是报400~).
d(`・∀・)b
This is because on load of page, before angular bootstrapping and creation of controllers, browser will try to load image from http://www.gravatar.com/avatar/{{hash}} and most probably it will fail. Then once angular is started, it understands that that {{hash}} has to be replace with say logo.png, now src attribute changes to http://www.gravatar.com/avatar/logo.png and image correctly loads. Problem is that there are 2 requests going and first one failing.
TO solve this we should use ng-src which is a angular directive and angular will replace ng-src value into src attribute only after angular bootstrapping and controllers are fully loaded, and at that time {{hash}} would have already been replaced with correct scope value.the angularjs directive ng-src is used to prevent the browser from loading the resource (e.g. image) before the handlebars get parsed
Refer:
http://stackoverflow.com/questions/27554765/use-of-ng-src-vs-src
http://stackoverflow.com/questions/18235169/understanding-angularjs-ng-src
重启服务器直接访问/list时报错.
初步判断为用户数据通过/index传到/list,所以如果直接/list时无用户数据直接访问不了╮(╯▽╰)╭
先埋个坑- -
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.