昨天微信小程序(應(yīng)用號)內(nèi)測的消息把整個技術(shù)社區(qū)炸開了鍋,我也忍不住跟了幾波,可惜沒有內(nèi)測資格,聽聞破解版出來了,今天早上就著原來的項目資源試開發(fā)了一下,總結(jié)一下體驗.
"use strict";
function init() {
tools.Chrome = chrome;
var n = require("../dist/lib/react.js"),
e = require("../dist/lib/react-dom.js"),
i = require("../dist/common/loadInit/init.js"),
o = require("../dist/components/ContainController.js"),
t = require("../dist/common/proxy/startProxy.js"),
r = require("../dist/actions/windowActions.js"),
s = require("../dist/actions/webviewActions.js"),
d = require("../dist/stroes/webviewStores.js"),
u = require("../dist/common/log/log.js"), c = require("../dist/common/shortCut/shortCut.js"), l = global.appConfig.isDev;
//...
}
"use strict";
var React = require("../../lib/react.js"), Dropdown = React.createClass({
displayName: "Dropdown", render: function () {
return React.createElement("div", {className: "dropdown"}, React.createElement("div", {className: "dropdown-item"}, React.createElement("img", {
src: "https://mmrb.github.io/avatar/jf.jpg",
alt: "",
className: "dropdown-item-icon"
}), React.createElement("div", {className: "dropdown-item-info"}, React.createElement("p", null, "公眾號名稱啦")), React.createElement("div", {className: "dropdown-item-extra"}, React.createElement("img", {
src: "https://mmrb.github.io/avatar/jf.jpg",
alt: "",
className: "dropdown-item-extra-icon"
}))), React.createElement("div", {className: "dropdown-item dropdown-item-active"}, React.createElement("img", {
src: "https://mmrb.github.io/avatar/jf.jpg",
alt: "",
className: "dropdown-item-icon"
}), React.createElement("div", {className: "dropdown-item-info"}, React.createElement("p", null, "公眾號名稱啦公眾號名稱啦公眾號名稱啦"))), React.createElement("div", {className: "dropdown-item"}, React.createElement("img", {
src: "https://mmrb.github.io/avatar/jf.jpg",
alt: "",
className: "dropdown-item-icon"
}), React.createElement("div", {className: "dropdown-item-info"}, React.createElement("p", null, "公眾號名稱啦"))), React.createElement("div", {className: "dropdown-item"}, React.createElement("img", {
src: "https://mmrb.github.io/avatar/jf.jpg",
alt: "",
className: "dropdown-item-icon"
}), React.createElement("div", {className: "dropdown-item-info"}, React.createElement("p", null, "公眾號名稱啦"))))
}
});
module.exports = Dropdown;
同時微信限制了小程序包的大小,為755kb,對緩存和本地文件應(yīng)該也有控制,這相對原生應(yīng)用動不動幾十兆上百兆的大小來說,絕對是一個亮點,給網(wǎng)上很多人說裝微信小程序同樣會占用手機存儲的人一個響亮的耳光。
總的來說,對前端來說絕對是一個好消息,短期內(nèi)前端待遇可能上漲,但小程序開發(fā)門檻較低(比前端的低),有一部開發(fā)人員是面向工資編程,隨著開發(fā)人員的流動,長期還是會和其它相關(guān)的的技術(shù)崗持平。所以,少年,不要激動,還要是把基礎(chǔ)知識打扎實。