1.在页面上显示字符串的值,
格式:a*@变量名
但@之前必须有空格,{、}等,使得a*不可以构成变量的字符.
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJkAAAAtCAIAAAAyZV6OAAAEXElEQVR4nO2arZLbMBDH9wEK+iABBftAN6ODhQVlDc8sPVByDxB2NyIlIQcPZuZmxAtSWlBwQAWSrZUsyY7ij8Sn/xgksiXL+9NqZXlBLyopAIRctg8LatzHh7EaKlNluR6WVSOqslyP8izftd5p/UVrGHBstP6h9fs8/V6Fuua9yIZ5lrthFPnxrawfH1Ip8xbaMM9ycz7LTVk/PqRS5i20YZ6lbV0KaCU791ZkT5GCGoDPEWgNxrRIgVULm+u5GSGAaO4hOzglp7gQyyt4s1H0CLBrj2G9aSymAAGEnJilFAxk46N8ECkCQFAXj6mLdAUsPckngEdSvdc5oxEGrlmiHpYi9DnQ0qNbWcb0Jga55owsFVlsLl4iKOnBi7BUB4St9yRyD/DgxqncA2ztgQfFL8OD0kfRnO01hyKEjpB7BA/1bXOKEASZukjKXmNPS8HKvGpDpegR8CVwS/WMcA/4zItnZCkFCOlipJ1vfZbdSVhrLQWHdCLcgjg2z3TA9rfB1v61jC11RQ8A+0F2TPilIgwA2n9mCCCp9gdrwifL2+DjIjJwWMiMTLB5llIELlGiXDVCIOUCpB070nNWP2I3/eCOqA7IndKXFAFLdmW2YtBKjKUi7PqokPyMI+Wz5I0VTODqBWGH9KfvOt9uChBaxyhRP8vW/QU0bsoc0VvlujF1ItwinbRxLz6RGjcFdngshzlioLi5Y25UyBIHDSmm6DTbUWbZUaJcNbPwce4I1k25LybXPhbMUXhh70ToxciOX47MMu5QhX7ZM8f6996BeOvr94zx0vil3QpAkOaH74XpdexRwFaIfcQpgwB5OUs/MPYVn8WyyCtj7yQmXsJP3p351z5hOBzI0ixe7EzLnumAbBEr6WEElv6Clps+XOi6tU+WZadGr6TYsb2Cp0il34T3APe8vSXeScpY3qgme1lVtF2OpVnvuHsoEOG24XXs4Y2qqVi+iuQ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5602NgUeHphde/jzNURItf18DcPp+/edZhYCDw/MXj38+Royv36/T7mMeAgdsEsPf770I3++Yu3wEDrA18PSwvHp4eMiJq4r46NfMoWmTbucTqfn5uDvafuTkGGzYbt5r16V5pVYBhEHBA6Kt4fhpP35Cqfpc+6+dvj9PqW/BXP69/v0/OXna5h+ig94/vL7fZqala6HcUei39Je/fkXbch0VgaRBwQOSlfr0kyc+OIRbNFXk7GGkajhZTCyLK5J3vI8IOtVtrd9EAl4eGDcPYwWgEN65Ykn7GuK6xpO17rf71O6oPw7JLwglj3Kjn3bQ73veHhgXD18LOriNeJiHiYf1jR5KPGoCw9hDTw9zN4rLeDhtOYMxRsb1qXlD1DxENbA28NojlY8DGawVcRXBeH3iaGGpveHAW97qNeOhwfG08N4kv69UYw8DGas9Gmq9Hmp/L3E10/pm4VYjPz7/qn2Nz2MB5EGRAsV7B7nz2liOfLr4el0Eu0ZxzF9J5fM9oY7AIIvGeXvD0tXaYOHIYVbBvDwwLh/XroS0n1tDrTcFISHB2avHo7jaLvPe13wEEzs2kN/8BBM4GE3EJADg4fdQEAODB52AwE5MPz/0p4KHBX+nzeAP3gI4A8eAviDhwD+4CGAP3gI4A8eAvjzlocUCmWRgocUin/BQwrFv+AhheJf8JBC8S94SKH4FzykUPwLHlIo/gUPKRT/gocUin/BQwrFv/wPDIorZLtejxkAAAAASUVORK5CYII=" alt="" />
(图1.2 razor引擎不会解析该变量)
--------------------------
ps:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJQAAAAyCAIAAAA1G2VwAAAEf0lEQVR4nO2aK3PcMBDH9wMU9IMcKNgPlBkFFhaU9fjN0oCSfIBjyYiUHAkMvJnMiBdcaUFBgAos2yt55df5pZz+Y3Dnhx7702plecGuIa0AlF6l6i1oqu7D9UVkraUML2GJ8N6tPVj7xVroceys/WHt+8LtTllN8460oQjv0A8bP75d3aXbUcy8g20owtsNh7e7vk83o5h5B9tQhOeK0woq6UZlhtwlMpBj5xCBtVCYFimw6u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KVumpJo5erZnfomrCeHySy6HL/ePZG3+22Dy8dZ6KOwnSYSXsY1X/FPx2c2Bp8jsrFYD5ouTwp65913baUSamALHXi81RKPuiipr4sKnHY15t9rtmWMqmUimslozt36E5fyUxnIRaEChIc533lpo/NNj34XEGyPfGcj3xwhaQ6wPsnOKIYHgUjbjXPtsCKUirbF1/PrsFKPujyT0yls9JUXvKx2dbKqTH+gfIf2vVVfUPzJJXpLYms1qic2wvWVlNURCkJFY4SKhwlVDhKqHCUUOEoocJRQoWjhApHCRWOEiocJVQ4SqhwlFDhKKHCUUKFo4QKRwkVjrqTyjh0Sn2+N7bYqlhSGYcOvEzXDeP1Rt8kjlTGofM5fD9KNeaDHKlE+n4a85dSKsuNu8uHsFLx55+AETw7d6DHoRMqpL6faHJxI7/icBXgaC5Hd0zj0GX5VXtMLs9gYG6JZzCvpHwW2nyuMSLzfIpKuEJyIJDnimNx4dHQoLMUUlkeDPsQgSnsR1Qa3AgVUYnv2opUWvKWcipg2A+oeCyuYIGLigZUNoPBcd8eMICKN/LYCi1jDRZsIpdmWvKUE097b8vRDWPsK13X+RWSJxN3f3I50YwkZsxRQoWjhApHCRWOEiocJVQ4SqhwlFDhKKHCUUKFo4QKRwkVjhIqHCVUOOoP9Vkj66imTYQAAAAASUVORK5CYII=" alt="" />
--------------------------
我们的问题来了,如果我们要abc3怎么办?
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIsAAAAoCAIAAABB857oAAAEiUlEQVR4nO1arXIbMRDeByjogxgU7ANlRoGFAWU194gGlOQBzJIRKTEJDPRMZsQLXFpQELAF0p1WOv3cyfeXa745YOu0ur39tFpZn4E+sG5AqcMb0YHoCxH0uHZE34neZvB7K+iGN4xhkaFDP274dTflK20MqfC6GBYZ2g1naDfpO20LqfC6GBYZsjZKQAvVGVFLe0tq6DHmB1oAEZjQogyi6nqUh5AIIBpL1SFJcW4WYkgJAKEWeLCDlg8Ah/bq500TMQ0IIFQVQ0owepp84oRrCYCgY/zPh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Wlfl0HrqkL+SN8tQ6HnzzZESMutaK2T1rFXEzYT3wY0KFXyNDIXyspLYeh8sf2Ek/NvmJetk9axV1M2JVPB1MjQq6mT1rNX4SC+O/wFDVCmrZ6zGR5mh93LqU4U6WT1lNcnZdpqhpGi9JYbqZPWyWryo8zdbYqhOVi+rxQs5P7kb8zP0gWH4B8CsILnDEdNKAAAAAElFTkSuQmCC" alt="" />
2.在页面上显示@
如需要在页面输出”@”字符
可以使用HTML ASCII编码@
3.语句@{....}
单行注释就直接//
多行就aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAK0AAAAbCAIAAACBXph8AAADiUlEQVRoge2aP5abMBDG5wApchAXKeZA+960W6ZIF/f7puUS1Kp9CVe6gesUKbaYFAih/wh5DTjmexSsF6Th04/RCADZSIoASG3V++ba2+XDVh3vzYiVtbfLPzjYRnu7/M04OLQrHRwcEmni4FPkQ+SHCFRsJ5HfIp9fHvf/q23sbeDgoy5Ed/t5f6Avo23sbeDgtDzQ0/2Bvoy2sXeeA80IAADI2p4CIqAIrFQUHIU/HqpUwcOC8zIsQdxxWtprUYqilkEEGAFojExNAWkGZBABQtACioDURhxcCc4br8z0BeEMdqNrzUkFDwvO2y4ZmxakMyOkGSPAQJETykjoEPpAMSAQAWEA7LraAQeergRn5NvscQUPC85bpUasQi0cEABrP1kpPz4NGB6zuvbGgSiqSgkFDwvOW63FgWYz5NMshaAVAIK2icuyPP4oN8bAheD+uNKUQjunxytBx1oUVWfXIBsPG16ci3D76kdUboxn4uHcjrU5xpCkesCLVr1tcDFh+oLedTmherHlPSw6PzX5EA7ix59muhpnJpOpRg4K9YHq3QHW3PljYPeHIbd/mvEwxOgL1o5BJh/4LThh3BgHAuyOcwcbAkxUbvAToEmOHSgTk0KSg5yHRee9AWoAIcvBAF1kpGYE1lNBwAjI0byQXC+4CeDGmJ8sVR9w4BxZPNFTmgPNXZwbSLktT6nL56BXibPqdWMMhzyprIdF58OrxNTglXstKK4+DQcmCAGCEVKfg2gTdwyiJKm5828pj4OmaT59Yur2beSgDkdHyakhUtbDovNOL00Tw9L6QA2lygQjGEjdtU2GAzs2QcWkufNyaZQPvpiDdIXRmA9m5gWv76CRtLIeFp23WqlONPlAs6lT1LAzkwxsL4rOQD0lkkFQENzPQVyZDp3lKowFHCiqyvC+UinEVA8eHDP5IOP81ORK64WKW7/AQbIyGmu08WZSF/wCDvyFg9tjuKCY6sQiB4ufCAVn5eAL/pX1sOj8dHFrrxvbOHhS1aX0Bg2FURUHReedBh/BQfK5MsH09FA0EB8ctOpKyecHhRIh4/yoBz1XHlt231+choCswidcie3p3zc+gAOzRIqmmJn3jSnnB3sf+p4poV/LJ4W3hsheVdvY28DBX5F3ke91IX4TeRP5c3+gL6Nt7G3gIP5w6vj47OnVwEHuw6nj47MnVgMHuULm6YvBV9Y/TXY02sNo73QAAAAASUVORK5CYII=" alt="" />
4.类型转换
AsInt(), IsInt()
AsBool(),IsBool()
AsFloat(),IsFloat()
AsDecimal(),IsDecimal()
AsDateTime(),IsDateTime()
ToString()
例子:
@{
var i = “10”;
}
<p> i = @i.AsInt() </p> <!-- 输出 i = 10 -->