xiaoyann / iakit Goto Github PK
View Code? Open in Web Editor NEW无依赖 mini 组件库,只封装了 alert, toast, loading, actionSheet 等使用频率较高的组件。适用于类似 H5 活动页的简单移动端项目,不必为了使用这些组件而引入一个大而全的 UI 库和框架。
License: MIT License
无依赖 mini 组件库,只封装了 alert, toast, loading, actionSheet 等使用频率较高的组件。适用于类似 H5 活动页的简单移动端项目,不必为了使用这些组件而引入一个大而全的 UI 库和框架。
License: MIT License
你的代码我只看了一个 alert,里面用的构造函数,以我目前的水平看的并不是很懂;
截止目前为止,我写了2年半的,每次写新页面的时候,常常因为要用一个 日期控件,下拉控件,或者alert什么的 要引入一整个库,但事实上,我需要的只是那几个常用的组件而已;然而,我并不懂 picker的滚动封装原理,而且没有整体封装思路,所以,就没有形成自己的控件库;
以上,是我想要请教封装思路的原因,我也想自己做一套常用的方法库,自己维护,自己更新,适用于自己的公司;
然而,我缺少一个整体的思路;我只看了你的 Alert.js源代码,其他的没有看,我猜想,你其他的js估计是一个风格;
大概是 建立构造函数,构造函数需要各种参数方法,这些参数方法单独提取出来,独立写成函数,return给 构造函数;
我目前的水平 只能从你的源代码中 读出这些东西;
那么最后,我想请教的是:按照你封装的思路,能不能给出一个类似流程图一样的东西,方法步骤图,这样一步一步走下去,可以做成一个库;我想借鉴一下;
为什么下载下来后点击没有效果
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.