大家好,
我如何在使用Jade生成的表单上实现jQuery样式呢?我想要美化表单并使其可点击。但是我对界面设计非常糟糕,完全不懂。期望能够使用http://jqueryui.com/selectable/中的selectable方法实现对表单的选择。
pendingArray是来自Express的一组JSON对象的数组。只需要绘制它并使其可点击。点击后,我希望打开一个弹出窗口,以便我可以将数据POST到我的API中。作为一个后端程序员,这个UI东西完全超出了我的理解范围,因为我从未花时间研究它。
page.jade:
include mainNavMenu
body
h1= title
p#container Welcome to #{title}
p#message (to be filled in)
script
alert('hello world');
$("#message").html("message set through jquery")
block Content
if (pendingArray)
- each val, key in pendingArray
<h1>#{val}</h1>
alert('hello world');
的“意外的文本;”。 - Cmag