<%= 'test1' %>
在http中显示test1,但如果我使用https,则会看到XXXX。
区别在哪里?
答案 0 :(得分:1)
Strange, it should not work in both cases, you should get compiler error: CS1012: Too many characters in character literal.
You should use double quotes, like this:
<%= "test1" %>
I can't see how uri scheme can change that, and there should be no difference.