Git Product home page Git Product logo

Comments (4)

TXLkb avatar TXLkb commented on June 3, 2024

不管stl模板语法如何变动都无法解决所有场景问题,强烈建议将js代码作为模板语法的参数,类似于isDynamic,但不是通过Ajax获取

from cms.

starlying avatar starlying commented on June 3, 2024

如果用反引号是可以避免JS内嵌问题,不过js:data=>data.title这个不太理解,直接用type=title不好吗

from cms.

TXLkb avatar TXLkb commented on June 3, 2024

如果用反引号是可以避免JS内嵌问题,不过js:data=>data.title这个不太理解,直接用type=title不好吗

我只是举个简单例子,“js:data=>data.title”的意思是这样的,js:表示参数为js代码,data=>data.title表示js函数(js的箭头函数),data表示内容,data.title表示返回内容中的标题,很多时候需要的并不是某一个字段,可能是一个数组,例如一组图片,或者是栏目的多个内容的字段,这时候用js代码处理将会非常方便。

from cms.

starlying avatar starlying commented on June 3, 2024

收到,我们会在下个版本增加反引号支持。

from cms.

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.