jQuery(或任何Web工具)嵌套表达式生成器 [英] jQuery (or any web tool) Nested Expression Builder

查看:116
本文介绍了jQuery(或任何Web工具)嵌套表达式生成器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将一个功能添加到我正在开发的Web应用程序中,以允许用户使用表达式构建器创建规则。例如Magento中使用的图片(下面的链接中的图片)。




  • 代码: https://github.com/chrisjpowers/business-rules


  • 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?

    这篇关于jQuery(或任何Web工具)嵌套表达式生成器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆