我想创建一个自定义工具栏.这是我的代码:
toolbar:[{
text: "Go to Add User Page",
className: "k-grid-custom",
imageClass: "k-add"
}],
function createUser(){
alert('Hello World');
}
Run Code Online (Sandbox Code Playgroud)
我想在单击此按钮(自定义工具栏)时调用名为createUser的函数.如何使它成为可能?
我想使用mysql为每个帖子获取大量评论.
我有两个表,一个是post表,另一个是comment表.帖子表有id
,title
并content
现场评论时有id
,post_id
,author
和comment
领域.
想要实现的结果就像
---------------------------------------------
Title Comment Count
---------------------------------------------
My fancy post 2
---------------------------------------------
Run Code Online (Sandbox Code Playgroud)
如果您对我的问题感到困惑,请告诉我.