brucevanfdm / wechatmeizhi Goto Github PK
View Code? Open in Web Editor NEW微信小程序版妹纸图
微信小程序版妹纸图
在项目中,发现没有使用wx.getSystemInfo这个API去获取使用机型的系统信息。
然后通过windowWidth,windowHeight和safeArea来调整小程序的布局设置。
没有通过wx.getSystemInfo的适配,在部分机型上可能会出现一些样式问题。
您好,方便确认一下该问题吗
请问将“福利”转为“%E7%A6%8F%E5%88%A9”,后者这属于什么码?
ps 测试时这个链接报错了,虽然点击它能正常返回数据。
是不是没有保存成功
onLoad
asdebug.js:1 Thu May 25 2017 11:23:04 GMT+0800 (**标准时间) 合法域名校验出错
asdebug.js:1 如若已经在管理后台更新域名配置,请刷新项目配置后重新编译项目,操作路径:“项目-配置信息-刷新”
asdebug.js:1 http://gank.io/api/data/%E7%A6%8F%E5%88%A9/10/1 不在以下合法域名列表中,请参考文档:https://mp.weixin.qq.com/debug/wxadoc/dev/api/network-request.htmlr @ asdebug.js:1v @ asdebug.js:1a @ asdebug.js:1o @ WAService.js:4u @ WAService.js:4request @ WAService.js:3(anonymous function) @ WAService.js:4requestData @ index.js [sm]:68onLoad @ index.js [sm]:39(anonymous function) @ WAService.js:7A @ WAService.js:7O @ WAService.js:7j @ WAService.js:7(anonymous function) @ WAService.js:7(anonymous function) @ WAService.js:7(anonymous function) @ WAService.js:4(anonymous function) @ WAService.js:4(anonymous function) @ WAService.js:4(anonymous function) @ asdebug.js:1n.emit @ asdebug.js:1r @ asdebug.js:1g @ asdebug.js:1(anonymous function) @ asdebug.js:1
asdebug.js:1 Array[0]
VM97:1 Thu May 25 2017 11:23:04 GMT+0800 (**标准时间) WXML Runtime warning
VM97:2 ./pages/index/index.wxml
VM97:3 Now you can provide attr "wx:key" for a "wx:for" to improve performance.
2 |
3 |
function bindData( itemData ) {
var url = itemData.url.replace( "//ww", "//ws" ); //???
// var url = itemData.url;
var desc = itemData.desc;
var who = itemData.who;
var times = itemData.publishedAt.split( "T" )[ 0 ];
mUrl.push( url );
mDesc.push( desc );
mWho.push( who );
mTimes.push( times );
mTitles.push( "publish by:" + "@" + who + " —— " + times );
}
请问为什么要用replace做这个置换呢,它的作用是什么?我试着去掉它,结果图片不显示。多谢多谢。
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.