Coder Social home page Coder Social logo

fieldyang / nodom Goto Github PK

View Code? Open in Web Editor NEW
25.0 25.0 4.0 213 KB

nodom 是一个web前端mvvm框架,主要目的是提供高效的数据驱动渲染框架,并配合齐全的的开发插件,方便用户进行开发,前期主要关注移动端应用。教程及api请访问http://www.nodom.org。

License: GNU General Public License v2.0

JavaScript 100.00%

nodom's People

Contributors

fieldyang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

nodom's Issues

报错Uncaught TypeError: this.broadcast is not a function

您好,
我按照官网上的实例程序进行测试,发现一个问题。代码如下:

example3

代码来源:http://www.nodom.org/route/tutorial/module -- 模块用法4-模块通信

点击发送按钮,报错:

Uncaught TypeError: this.broadcast is not a function example3.html:28

使用sublime text3及SublimeServer

我完全按照实例进行操作,并且前面几个实例均可以运行通过,不知道为什么第四个会报错?
如果有空,麻烦帮忙解答,非常感谢。

关于使用broadcast方式来进行父子模块,兄弟模块之间的通信

每个模块都可以通过NoDom提供消息机制与兄弟模块、父模块和子模块进行通信,主要通过broadcast方法(广播消息)和send方法(定向发送)、onReceive钩子处理收到的消息。

我有如下疑问:

  • 如果我只想传递某一个msg给某一个子模块,不想共享出去,应该怎么办?
  • 如果我在父模块广播了一些值,那是不是当前页面上的所有模块都会收到?包括父模块的兄弟模块,要是我传递的数据量大的话,会不会造成性能问题?
  • 有些正在广播的数据,有的模块又不需要这样的数据,这个模块有没有办法把这些数据屏蔽?
  • 当前广播中仅有且只有一个消息?有没有可能出现一些同步和异步的消息?

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.