1
我希望有我的窗體上有一個像我怎樣才能顯示佔位符文本撇號的軌道形式
的佔位符,請進入商店的地址
如何修改下面的表格讓撇號工作?
<%= 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' %>
或使用字符串文字加上引號:
<%= text_area_tag 'store', '', class: 'form-control', placeholder: "Please enter the store's address" %>
佔位符: '請輸入店\' 的地址 –