📄 script.cs
字号:
using System;
using System.ComponentModel;
using System.Web;
using System.Web.UI;
using NetFocus.Web.Core;
namespace NetFocus.Web.Applications.Forum
{
public class Script : LiteralControl
{
private const string srcFormat = "<script type=\"text/javascript\" charset=\"utf-8\" src=\"{0}/{1}\"></script>";
[DefaultValue( "Utility/global.js" )]
public virtual String Src
{
get
{
Object state = ViewState["Src"];
if ( state != null )
{
return "Utility/" + (String)state;
}
return "Utility/global.js";
}
set
{
ViewState["Src"] = value;
}
}
protected override void Render(HtmlTextWriter writer)
{
writer.Write(srcFormat, Globals.ApplicationPath, Src + "?tag=" + Guid.NewGuid().ToString());
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -