Comments (6)
目前在Clouda中没有封装处理图片保存到mongod的API,但是你可以在Controller中使用js算法来处理图片或者直接使用处理图片的JS SDK(例如百度BAE上的图片处理服务),然后将处理后的图片存入mongodb中
from cloudajs.
俺是新手不大懂,还是没搞明白怎么在Controller里面使用node的api。百度图片服务貌似也是node的,带有require语句什么的,如何在Controller里面使用呢?给个范例呗O(∩_∩)O
from cloudajs.
请问post方式请求第三方数据可以自定义请求header里面的内容吗
在 2013年9月10日上午10:02,zjwphoenix [email protected]写道:
俺是新手不大懂,还是没搞明白怎么在Controller里面使用node的api。百度图片服务貌似也是node的,带有require语句什么的,如何在Controller里面使用呢?给个范例呗O(∩_∩)O
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/43#issuecomment-24128930
.
from cloudajs.
post方式请求第三方数据支持自定义header, 在externalConfig对应的接口中自定义声明即可:
var options = {
host : 'some.host.com',
path : '/' + type,
headers: {
//在此自定义header内容
'Content-Type': ...
}
}
另外,clouda默认的 'Content-Type': 'application/x-www-form-urlencoded'。
from cloudajs.
谢谢~请问可以设置cookie吗?
2013/9/10 einsteinhx [email protected]
post方式请求第三方数据支持自定义header, 在externalConfig对应的接口中自定义声明即可:
var options = {
host : 'some.host.com',
path : '/' + type,
headers: {
//在此自定义header内容
'Content-Type': ...
}}另外,clouda默认的 'Content-Type': 'application/x-www-form-urlencoded'。
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/43#issuecomment-24130759
.
from cloudajs.
可以
from cloudajs.
Related Issues (20)
- touchjs 如果用事件代理 event对象拿不到触发事件的dom
- 怎么开启debug模式 HOT 1
- 点击链接时跳转太快 HOT 2
- 请问clouda在windows平台可以使用吗? HOT 2
- 关于clouda的一些问题(急)!!! HOT 1
- sumeru.collection.create的API说明真当没问题么? HOT 1
- html缓存问题 HOT 1
- sumeru start .... NON BAE MODE
- 求救,关于clouda的文件上传疑问 HOT 1
- 0.10.4 用户登陆,在刷新页面之后不能持久化 HOT 1
- 在controller怎么为session绑定自定义数据?
- 是否考虑支持不同数据源
- view 层最好支持自定义模板,比如支持jade,ejs等等
- expand Validation in Model HOT 1
- 有一个问题感觉很奇怪 HOT 4
- 如何加载font-awesome等第三方图标库
- Android 的QQ浏览器支持问题
- 403 -Forbidden 安卓手机运行轻应用调试时总是出现这个问题 HOT 2
- touch.js的swipe在锤子手机原生浏览器上不能使用 HOT 2
- touchjs的touch.config的使用问题 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloudajs.