Giter Club home page Giter Club logo

Comments (3)

otakustay avatar otakustay commented on May 24, 2024
  1. 其实我认为options是“当前这个Action”用的,因此跳转后是一个新的Action,不应该把options也给过去混在一起,至于有需要传options的,就类似于你要传个完全不同于当前的options,添加click事件处理吧
  2. <a>上绑上click事件,调用locator.redirect干活,如果要绑的元素很多,建议再套一层<div>之类的抓事件,根据冒泡顺序,你的事件应该在子Action容器之前会被拿到,记得stopPropagation

from er.

jinzhubaofu avatar jinzhubaofu commented on May 24, 2024

可是redirect内部的逻辑现在是需要这个options,没有这个参数它就挂了。。。

哦,你的意思是我们自己在子action内部处理点击事件,然后阻止事件冒泡。got it.

from er.

otakustay avatar otakustay commented on May 24, 2024

少处理了参数默认值……

from er.

Related Issues (20)

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.