我想让我的表单有一个占位符,例如
请输入商店地址
我如何编辑下面的表格以使撇号生效?
<%= text_area_tag 'store', '', class: 'form-control', placeholder: 'Please enter the store's address' %>
您可以使用反斜杠转义撇号:
<%= text_area_tag 'store', '', class: 'form-control', placeholder: 'Please enter the store\'s address' %>
或使用带引号的字符串文字:
<%= text_area_tag 'store', '', class: 'form-control', placeholder: "Please enter the store's address" %>
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句