jQuery的(或任何基于Web的工具)嵌套防爆pression生成器 [英] jQuery (or any web tool) Nested Expression Builder
问题描述
我想一个功能添加到Web应用程序,我正在开发允许用户与前pression建设者创建规则。如在Magento(图片下面链接)。用一个
I would like to add a feature to a web app I am developing to allow the user to create rules with an expression builder. Such as the one used in Magento (picture in link below).
http://i.stack.imgur.com/ZWgcG.png
我希望让他们能够创建前pressions或者如果数据库使用的列名从一个表的语句,然后可以做比较,什么不是。建在用户界面的EX pression然后将计算结果为code将由PHP脚本或JavaScript或Perl
I want to allows them to be able to create the expressions or if statements using column names from a table in a Database, then be able to do comparisons and what not. The expression built in the user interface would then evaluate to code that would be evaluated by a PHP script or Javascript or Perl
我在网上搜索基于这样的事情是JavaScript的(阿贾克斯)。我人物必须有一个模块或东西在互联网某处的jQuery或类似的东西,但我一直没能找到任何东西。我也不太清楚这样的事情被称为除了前pression生成器。如果有这样的事情在那里它可以节省我很多时间相比,从头开始编写它。
I searched the web for things like this that are javascript (ajax) based. I figures there has to be a module or something out on the internet somewhere for jQuery or something similar, but I haven't been able to find anything. I am also not quite sure what something like this is called besides "Expression Builder". If there is something like this out there it would save me a lot of time compared to writing it from scratch.
推荐答案
这这里应该是你在寻找什么?
This here should be exactly what you're looking for?
- 演示: https://github.com/chrisjpowers/business-rules 李>
- code: https://github.com/chrisjpowers/business-rules
- Demo: https://github.com/chrisjpowers/business-rules
- Code: https://github.com/chrisjpowers/business-rules
这篇关于jQuery的(或任何基于Web的工具)嵌套防爆pression生成器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!