Comments (2)
com.post(api.domain + '/ui/dashboard.ashx', { method: 'GetList' }, function (res) { _items = $.parseJSON(res.list); menuInit((_items.find(function (a) { return a.selected; })).key); Dropdown({ el: '#systemSwitch', items: _items, onclick: function (item) { menuInit(item.key); } }); }); var menuInit = function (mkid) { com.post(api.domain + '/ui/dashboard.ashx', { method: 'GetList', mkid: mkid }, function (res) { var _list = $.parseJSON(res.list); if (_list.length == 1) { menuClick(_list[0]);//直接加载菜单 } else { Dropdown({ el: '#dashboard', items: _list, onclick: function (item) { menuClick(item); } }); //加载默认选中板块菜单 } }); }
from flow-ui.
Dropdown新增加了items()
实例方法,允许更新/获取当前实例的数据;menu插件我想不到有更新数据的需求啊,目前可以修改当前项,一定要动态更新数据吗?
from flow-ui.
Related Issues (6)
- 博主的技术杖跟我的真是惊人的相似,持续关注
- 脚手架 跑不起来 HOT 3
- 怎么使用swiper? HOT 4
- ie浏览器下cutdown,倒计时使用不了 HOT 3
- 若能整合一个hash的前端路由就完美了 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flow-ui.