jQuery(或任何Web工具)嵌套表达式生成器 [英] jQuery (or any web tool) Nested Expression Builder
问题描述
我想将一个功能添加到我正在开发的Web应用程序中,以允许用户使用表达式构建器创建规则。例如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
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
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?
- Demo: https://github.com/chrisjpowers/business-rules
- Code: https://github.com/chrisjpowers/business-rules
这篇关于jQuery(或任何Web工具)嵌套表达式生成器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!