微信小程序開發者工具發佈最新版本0.10.101100,增長了video控件,模塊化中可以使用 exports 對外暴露接口,模塊化中 require 可不寫 .js 後綴等。git
A 增長 <video/> Android 添加了默認的控件github
A 增長 模塊化中可以使用 exports 對外暴露接口json
A 增長 模塊化中 require 可不寫 .js 後綴canvas
F 修復 <swiper/> 滑動靈敏度小程序
F 修復 <toast/> 中圖標位置偏上,沒有居中的問題微信小程序
F 修復 <view/> 標籤 hidden 屬性失效的問題微信
F 修復 <input/> iOS10 下首次輸入不顯示的問題app
F 修復 <button/> type="mini" 的問題ide
F 修復 <button/> 出現 loading 時,loading和文字對齊的問題模塊化
F 修復 <canvas/> drawImage 圖片路徑不正確的問題
F 修復 Page 中 data 以外的數據沒法被重置的問題
F 修復 大小寫致使的 wx.request 的 header 參數屬性被重複設置的問題
F 修復 app.js 中沒法使用 require 的問題
R 移除 <switch/> 組件多餘點擊態
R 移除 <view/> 標籤 inline 屬性
R 移除 <page/> 標籤的 height 100% 的默認樣式
A 增長 ES6 到 ES5 的轉換,默認開啓,開發者能夠在項目中主動關閉
A 增長提交代碼時候可選壓縮代碼,默認關閉,開發者能夠在項目中主動開啓
A 增長 wx.uploadFile 和 wx.downloadFile 調試支持
A 增長下拉刷新的調試支持
A 增長 <form/> reportSubmit 模式模擬返回 formId 調試支持
A 增長 <video/> 添加了滑動進度條的功能
A 增長 <picker/> mode=time mode=date
F 修復打開地圖致使錯誤的問題
F 修復 <map/> 組件不顯示的問題
F 修復 <canvas/> 中 drawImage 閃爍的問題
F 修復 json 中 navigationBarTextStyle 缺省值設置出錯的問題
F 修復 <picker/> 在表單提交事件中 value 爲空的問題
F 修復背景音樂中止時會觸發一次 wx.onBackgroundAudioPause 的問題
F 修復wx.request 超時會觸發兩次 fail 和 complete 回調的問題
F 修復小屏幕下開發者工具沒法拖動到底部的問題
F 修復 wx.setStorage 沒有限制大小的問題
F 修復某些狀況下修改了代碼文件但工具沒有更新的問題
A 增長側邊欄能夠拖拽位置保存
A 增長快捷鍵 ctrl + or command + 隱藏側邊欄
A 增長文件頁卡能夠拖動排序的功能
F 修復 wx.setNavitionBarTitle 提示錯誤的問題
F 修復某些狀況下文件修改不生效的問題
能夠直接使用require一些第三方模塊
var Immutable = require( '../../libs/immutable/immutable' ); var app = getApp(); Page( { onLoad: function() { //console.log('onLoad'); var that = this; var lines = []; var map1 = Immutable.Map({a:1, b:2, c:3}); var map2 = map1.set('b', 50); lines.push(map1.get('b')); lines.push(map2.get('b')); } })
微信小程序WAService.js對部分JavaScript功能進行了閹割,致使一些模塊沒法使用
function(e, t, n) { (function(e) { n(1); if ("undefined" != typeof Function) { var t = Function; e = {}, Function.constructor = function() { return arguments[arguments.length - 1] = "console.warn('can not create Function')", t.apply(this, arguments) } , Function.prototype.constructor = function() { return arguments[arguments.length - 1] = "console.warn('can not create Function')", t.apply(this, arguments) } , Function = function() { return "return this" === arguments[arguments.length - 1] ? arguments[arguments.length - 1] = "return global" : arguments[arguments.length - 1] = "console.warn('can not create Function')", t.apply(this, arguments) } } "undefined" != typeof eval && (eval = void 0), "undefined" != typeof navigator && !function() { var e = setTimeout; setTimeout = function(t, n) { if ("function" == typeof t) return e(t, n) } ; var t = setInterval; setInterval = function(e, n) { if ("function" == typeof e) return t(e, n) } }() } ).call(t, function() { return this }()) }