Git Product home page Git Product logo

Comments (6)

TerryZ avatar TerryZ commented on July 17, 2024

所有项目的写值,必须是出现列表项目后,鼠标点击或是键盘选择高亮后回车选择,选中的项目才会被设置到隐藏域中

from selectpage.

qwer120158285 avatar qwer120158285 commented on July 17, 2024

查看了源码,发现clearAll里面没有清除self.prop里面的值,斗胆清除了一下,发现上述问题解决

from selectpage.

TerryZ avatar TerryZ commented on July 17, 2024

这是插件的内部数据对象,不建议处理,我认为你还是操作方式有问题

from selectpage.

qwer120158285 avatar qwer120158285 commented on July 17, 2024

我的问题不是写值的问题,是查询北京,选中后,点击清楚按钮,然后再次输入北京,由于这行代码
if(val && val === self.prop.selected_text) q_word = '';
导致后面输入的北京无法传到后台

from selectpage.

qwer120158285 avatar qwer120158285 commented on July 17, 2024

在clearAll方法中将self.prop.selected_text 和 self.prop.selected_pre两个字段设置为空,就可以正常传值到后台。不知道这里是否是作者有意而为之

from selectpage.

TerryZ avatar TerryZ commented on July 17, 2024

代码会这么写肯定是有其功能需求
对于你描述的问题,我测试了静态数据模式,ajax数据模式,在单选模式下都没有重现你说的查询条件不会传递到服务端的问题

也许是我测试的方式不对

from selectpage.

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.