发表于: 2017-07-21 23:20:13
1 918
今天完成的事情
1、看高程
2、写微信小程序
今天尝试了一下微信小程序的地图组件
<map id="map" longitude="113.324520" latitude="23.099994" scale="14" controls="{{controls}}" bindcontroltap="controltap" markers="{{markers}}" bindmarkertap="markertap" polyline="{{polyline}}" bindregionchange="regionchange" show-location style="width: 100%; height: 300px;"></map>
这个组件还挺有意思的。使用这个组件必须要填经纬度。否则就是默认为北京。
还有客服会话的组件,看到修真院的项目有这个功能,我也尝试了一下
<contact-button
type="default-light"
size="20"
session-from="weapp"></contact-button>
一个详细的文档,对于我们开发,真的是非常的方便。
明天计划的事情
1、将微信小程序剩下的功能完成
2、看看面试题
遇到的问题
收获
bom
bom的核心对象是window
window对象属性:documnet、localtion、 navigator 、screen 、history、 frames
history、navigator 、 frames这三个基本没用过
navigator主要是来识别客户端浏览器
history是用来保存用户上网的历史纪录
评论