Scala: พิมพ์ ‘@’ ในหน้าเว็ป ของ Play Framework

เนื่องจาก ‘@’ เป็น special charactor สำหรับหน้า html ของ Play Framework

ดังนั้น ถ้าเราพิมพ์ @ เฉยๆ มันจะ compile ไม่ผ่าน เพราะมันเป็น special charactor เอาไว้เรียกตัวแปร

เวลาใช้ให้เราพิมพ์ @@ แทน @ ก็จะใช้งานได้

 

About champillon

Enterprise Opensource Implementer
This entry was posted in Scala and tagged , . Bookmark the permalink.

Leave a comment