kf-kissyform / butterfly Goto Github PK
View Code? Open in Web Editor NEWButterfly是完整的表单解决方案,自带表单验证、数据层、多表单主题支持和丰富的表单ui。
Home Page: http://butterfly.36ria.com/
Butterfly是完整的表单解决方案,自带表单验证、数据层、多表单主题支持和丰富的表单ui。
Home Page: http://butterfly.36ria.com/
典型使用场景:地区联动选择
月下独酌同学反馈:max设置为1的时候,firebug会报一个错,这是什么原因呢,我用这个来上传头像,希望一个一个上传,错误提示是 TypeError: i.parent("li") is null
larro同学反映:,是第max张图片上传出现那个js错误,max=1的话就一张也上传不了,max=3的话,前面两站没问题,后面第3张出现错误
data-valid为Butterfly的Auth的消息配置伪属性,统一使用。
less编译出问题了
无法将验证配置,配置在除了第一项的地方
flash传递中文时会出现乱码问题,使用S. fromUnicode方法对服务器端返回的中文进行处理,要求服务器端将中文Unicode化
只见于值得快速改变时候
增加延迟,在ajax上传下存在bug
type/flash模块引入二次,导致flash上传不可用
借鉴mvvm模式**,实现表单视图和表单数据的双向同步更新
新思路:文件是否相同,可以额外通过图片的大小等信息确认。
$containerEl = $ (D.create('<span class="'+ getCls.container + '">'))
左右的增减按钮的样式最好能够随着交互的状态而变动(这个是我这边日常上的需求)显示出三种状态:normal,hover,disabled,见下图
源码中会有 toFixed(2),每次竖直都有两位小数,这个组件不仅仅可以用于金额方面,比如说detail那边的购买宝贝个数,就是整数吖,所以,让用户自己去做主吧~
增加消息层容器可配置性
新文档的编写;
增加一个map(fn)用于上传成功后过滤返回的data,将不合标准的数据转成符合解析标准的json数据
将上传方式改成iframe,360浏览器和搜狗浏览器,flash上传cookies会丢失
IE下为了保证体验一致,是使用flash上传,flash上传第三方开发者处理起来有增加了如下成本:需要有个crossdomain.xml,而现在又遇到国产浏览器在线上环境cookies丢失的问题,见于360和搜狗。第三方开发者成本很高。如果切成iframe,用户体验变差,同时有时会遇到跨域问题。
为了和html中的required属性保持统一
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.