billfeller

Results 105 issues of billfeller

实现功能:通过高阶组件,规范组件目录,编写规范,实现组件自动注册、按需加载,优化开发体验 实现细节

https://github.com/camsong/blog/issues/5

首先需要知道Git 项目包含三个工作区域的概念:工作目录、暂存区域以及Git 仓库。 1. 已修改(modified):修改了文件,但还没保存到数据库中。 2. 已暂存(staged):对一个已修改文件的当前版本做了标记,使之包含在下次提交的快照中。 3. 已提交(committed):数据已经安全的保存在本地数据库中。 ![image](https://user-images.githubusercontent.com/998505/37631269-e0f61d40-2c23-11e8-956c-6cffa52777b0.png) 1. git diff --staged表示暂存区域与Git仓库的区别; 2. git diff HEAD表示工作区域Git仓库的区别; 通过 git status 可以查看到区别: ``` $ git status On branch master Your...

TODO: React组件设计模式

1. 传统表单提交:通过表单input="file"实现文件上传,用户提交表单后,页面刷新,跳转到表单action属性指定的网址,属于同步上传方式。优点:实现简单;缺点:需要刷新页面,体验较差。 ```html ``` 2. 基于iframe的异步上传:将form表单的target属性指向页面中隐藏的iframe,从而提交表单是,服务器将结果返回到iframe窗口,从而当前页面不会跳转。在同源iframe中调用父级窗口的方法实现将上传结果同步到父级页面中。优点:无刷新,兼容性强;缺点:iframe实现不够优雅。 ```html function callback(result) { document.getElementById("msg").innerHTML = "" + result + ""; } ``` 3. 基于HTML5 XMLHTTPRequest 2.0,利用FormData实现异步上传。优点:实现简单,原生支持;缺点:需要现代浏览器支持XMLHTTPRequest 2.0。 ```html $('#upload').click(function () { // 创建formdata对象...

\Tencent\微信web开发者工具\package.nw\app\dist\weapp\commit\pack.js ```javascript "use strict"; function init() { var e = require("glob"), r = require("fs"), n = require("path"), t = require("../../common/log/log.js"); _exports = function(f, u, i) { var c = 0,...

原理:基于 android-sdk\platform-tools\adb.exe工具,通过 root 权限获取小程序安装包 .wxapkg ,通过 微信开发者工具中自带的pack.js打包算法,逆向解压获取小程序源码。 ### 获取小程序安装包 1. 手机开启root权限,如何开启依据机型系统而定; 2. 手机开启USB调试功能; 3. 电脑安装 android-sdk; 4. 获取小程序安装包: ```bash > adb shell $ su # cd /data/data/com.tencent.mm/MicroMsg/cb3036a95b9d5b2452d7c27d4f2a0e89/appbrand/pkg # cp _1163267367_18.wxapkg...

demo示例通过 animation 在小程序中实现跑马灯效果。 animation.wxml ```wxml 测试跑马灯效果;测试跑马灯效果; 测试跑马灯效果;测试跑马灯效果; 测试跑马灯效果;测试跑马灯效果; 测试跑马灯效果;测试跑马灯效果; 测试跑马灯效果;测试跑马灯效果; ``` animation.wxss ```wxss .marquee-wrap { width: 100%; overflow: hidden; } .marquee-text { font-size: 11px; white-space: nowrap; } .marquee-item { display:...

in CORS (Cross-origin resource sharing), when web application (origin) request the cross-domain resources, the cross-domain server need response Access-Control-Allow-Origin to authorise the web application to use its services and does...