Coder Social home page Coder Social logo

列表相关的重载 about flow-ui HOT 2 OPEN

fouao avatar fouao commented on July 19, 2024
列表相关的重载

from flow-ui.

Comments (2)

fouao avatar fouao commented on July 19, 2024

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.

tower1229 avatar tower1229 commented on July 19, 2024

Dropdown新增加了items()实例方法,允许更新/获取当前实例的数据;menu插件我想不到有更新数据的需求啊,目前可以修改当前项,一定要动态更新数据吗?

from flow-ui.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.