前端小尚

Results 8 issues of 前端小尚

## 代码示例 ```js // app/model/testOpenDataSource.js 'use strict'; const mongoose = require('mongoose'); module.exports = app => { const User = app.mongooseDB.get('app').models.crm_user; const schema = new mongoose.Schema({ // 创建人 user: { type:...

Inactive

我看`egg-weapp-sdk`插件接收`X-WX-Code`、`X-WX-Encrypted-Data`等传参。我在传`X-WX-IV`的时候遇到了问题,因为iv是一个object类型。如果传object类型的值过去,egg请求接收不到。也不知道该怎么配置。想通过这个小程序案例看看,是怎么传参的,结果发现这个demo用的是*腾讯云的微信小程序sdk*。 求大神指点。

作者你好,问题如题,写上'data-ajax="false"'或者'data-rel="external"'都没有用,但是我又不想全局设置'Mobilebone.captureLink = false',求解决方案~~

你好,我在index.html里放置了三个“页面”,通过`#&xxx`来做切换,这三个页面之间的值如何互相传递。我尝试用`&#xxx?abc=123`的方式来传值,可惜失败了。。 这三个"页面"都单独写了进/出场回调函数,所以它们不是在同一个命名空间下的,然后我又不想把这些传至暴露给window对象,这应该怎么实现呢?

看源码它好像就是写死的`X-WX-Skey:bravo`,并不是可配的。那它存在的意义是?

![image](https://user-images.githubusercontent.com/5373111/28253722-467c234c-6ad9-11e7-83b5-391a9bb5db56.png) ![image](https://user-images.githubusercontent.com/5373111/28253797-d407a4ac-6ad9-11e7-8558-c850e61a4a9f.png) 它的返回值是 ![image](https://user-images.githubusercontent.com/5373111/28253801-e3325e4a-6ad9-11e7-8510-52812efc42af.png)

![image](https://cloud.githubusercontent.com/assets/5373111/9166228/9618fd30-3f84-11e5-856e-dd0f61856406.png) ![image](https://cloud.githubusercontent.com/assets/5373111/9166667/9d5ab6aa-3f85-11e5-8d1a-fe43aad85e86.png) 请问 为啥写上这个配置就会报错呢,看发布后的输出结果又是正常的. 问题出在哪?