Comments (4)
不管stl模板语法如何变动都无法解决所有场景问题,强烈建议将js代码作为模板语法的参数,类似于isDynamic,但不是通过Ajax获取
from cms.
如果用反引号是可以避免JS内嵌问题,不过js:data=>data.title这个不太理解,直接用type=title不好吗
from cms.
如果用反引号是可以避免JS内嵌问题,不过js:data=>data.title这个不太理解,直接用type=title不好吗
我只是举个简单例子,“js:data=>data.title”的意思是这样的,js:表示参数为js代码,data=>data.title表示js函数(js的箭头函数),data表示内容,data.title表示返回内容中的标题,很多时候需要的并不是某一个字段,可能是一个数组,例如一组图片,或者是栏目的多个内容的字段,这时候用js代码处理将会非常方便。
from cms.
收到,我们会在下个版本增加反引号支持。
from cms.
Related Issues (20)
- CentOS系统下,升级安装好7.22。但是想执行sscms命令,却找不到这个命令! HOT 1
- 前台注册用户Home界面添加内容界面,选择视频上传后,文档框中不出现视频路径 HOT 2
- 内容字段 {Content.AddUserName}不解析 HOT 4
- 6.x版本的数据库配置文件在哪
- 6.x升级到7.x最新版本数据库怎么转移 HOT 3
- 关于命令模式下数据迁移到达梦的问题 HOT 3
- {"message":"The type initializer for 'Gdip' threw an exception.","addDate":"2023-10-29 08:07:36"} HOT 1
- API密钥是否支持指定? HOT 1
- The sscms.json file does not exist: /app/sscms.json HOT 1
- 内容里面上传图片,接口返回路径不是绝对路径,而是@/upload HOT 1
- {"message":"Character set 'utf8mb3' is not supported by .Net Framework.","addDate":"2023-11-11 14:56:35"} HOT 3
- Commit Bugfix 能否表述一下 Bug 是什么 HOT 1
- 跨站转发审核设置bug HOT 1
- 垂直越权(高危)/api/admin/cms/create/createStatus?siteId=1 HOT 1
- 水平越权(高危)/api/admin/common/adminLayerView?adminId=8&userName= HOT 4
- 水平越权(高危)/api/admin/common/userLayerView?userId=12&userName= HOT 2
- SSCMS.Gather采集插件添加批量采集 HOT 1
- 请问cms上传文件最大大小限制只能是1M、2M这种吗,不能300K这种设置吗 HOT 2
- 系统如何设置取消缓存 HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cms.