ASP常用的函数模块 http://www.cnblogs.com/cnnix/archive/2006/07/16/452286.html

AI权益加码!Claude Code、Cursor等20+工具免费用! 购周边限时加赠Coding Plan Lite,畅享主流AI工具!学习进阶更高效! 阅读详情
****************************************************************
本作品来自网络,版权归原作者所有。如有异议,请留言。
****************************************************************
作者:CSDN 许仙
'Homepage : jjweb.126.com
'MSN :Coderxu#hotmail.com
'QQ:19030300
'转载请保持文章完整,保存以上作者信息 请珍惜他人劳动成果
'大部分抄的别人的自己只写了几个函数,功能挺有用的 :)

<!--#include file="Conn.asp"-->
<% '公用模块用于存储所以的函数

'Dim r, rst
'Set r = New ClsCurrent
'Set rst = r.OpenRst("Select *")
'ExeSql "Instr .."
'r.NothingRst rst'关闭释放记录集
'set r=nothing

'定义超全局变量
Dim URLSelf, URISelf
URISelf = Request.ServerVariables("SCRIPT_NAME")
If Request.QueryString = "" Then
    URLSelf = URISelf
Else
    URLSelf = URISelf & "?" & Request.QueryString
End If
response.charset="utf-8"
Response.Buffer = True
Response.Expires = -1
'===================================================================================
'   函数原型:Quit
'功    能:中止程序
'参    数:无
'返 回 值:无
'涉及的表:无
'===================================================================================
Sub Quit ()
 Response.End()
End Sub
'===================================================================================
'   函数原型:CheckEmpty(sVar,sInfo)
'功    能:'检查是否为空,若空提示,并退回
'参    数:要显示的消息
'返 回 值:无
'涉及的表:无
'===================================================================================
Public Function CheckEmpty(sVar,sInfo)
 If trim(sVar)<>""Then Exit Function
 MessageBox sInfo & "不能为空!"
 GoBack
 Quit
End Function
'===================================================================================
'   函数原型:  GotoURL (URL)
'功    能:转到指定的URL
'参    数:URL 要跳转的URL
'返 回 值:无
'涉及的表:无
'===================================================================================
Public Function GotoURL(URL)
    Response.Write "<script language=""JavaScript"">location.href='" & URL & "';</script>"
End Function

'===================================================================================
'   函数原型:  MessageBox (Msg)
'功    能:显示消息框
'参    数:要显示的消息
'返 回 值:无
'涉及的表:无
'===================================================================================
Public Function MessageBox(msg)
    msg = Replace(msg, "/", "//")
    msg = Replace(msg, "'", "/'")
    msg = Replace(msg, """", "/""")
    msg = Replace(msg, vbCrLf, "/n")
    msg = Replace(msg, vbCr, "")
    msg = Replace(msg, vbLf, "")
    Response.Write "<script language=""JavaScript"">alert('" & msg & "');</script>"
End Function

'===================================================================================
'   函数原型:  ReturnValue (bolValue)
'功    能:设置Window对象的返回值:只能是布尔值
'参    数:返回值
'返 回 值:无
'涉及的表:无
'===================================================================================
Public Function ReturnValue(bolValue)
    If bolValue Then
        Response.Write "<script language=""JavaScript"">window.returnValue=true;</script>"
    Else
        Response.Write "<script language=""JavaScript"">window.returnValue=false;</script>"
    End If
End Function

'===================================================================================
'   函数原型:  GoBack (URL)
'功    能:后退
'参    数:无
'返 回 值:无
'涉及的表:无
'===================================================================================
Public Function GoBack()
    Response.Write "<script language=""JavaScript"">history.go(-1);</script>"
End Function

'===================================================================================
'   函数原型:  CloseWindow ()
'功    能:关闭窗口
'参    数:无
'返 回 值:无
'涉及的表:无
'===================================================================================
Public Function CloseWindow()
    Response.Write "<script language=""JavaScript"">window.opener=null;window.close();</script>"
End Function

'===================================================================================
'   函数原型:  RefreshParent ()
'功    能:刷新父框架
'参    数:无
'返 回 值:无
'涉及的表:无
'===================================================================================
Public Function RefreshParent()
    Response.Write "<script language=""JavaScript"">if(parent!=self) parent.location.reload();</script>"
End Function

'===================================================================================
'   函数原型:  RefreshTop ()
'功    能:刷新顶级框架
'参    数:无
'返 回 值:无
'涉及的表:无
'===================================================================================
Public Function RefreshTop()
    Response.Write "<script language=""JavaScript"">if(top!=self) top.location.reload();</script>"
End Function

'===================================================================================
'   函数原型:  GenPassword (intLen,PassMask)
'功    能:生成随机密码
'参    数:intLen新密码长度
'PassMask生成密码的掩码默认为空
'返 回 值:无
'涉及的表:无
'===================================================================================
Public Function GenPassword(intLen, PassMask)
    Dim iCnt, PosTemp
    Randomize
    If PassMask = "" Then
        PassMask = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz"
    End If
    For iCnt = 1 To intLen
        PosTemp = Fix(Rnd(1) * (Len(PassMask))) + 1
        GenPassword = GenPassword & Mid(PassMask, PosTemp, 1)
    Next
End Function

'===================================================================================
'   函数原型:  GenSerialString ()
'功    能:生成序列号
'参    数:无
'返 回 值:无
'涉及的表:无
'===================================================================================
Public Function GenSerialString()
    GenSerialString = Year(Now())
    If Month(Now()) < 10 Then
        GenSerialString = GenSerialString & "0"
    End If
    GenSerialString = GenSerialString & Month(Now())
    If Day(Now()) < 10 Then
        GenSerialString = GenSerialString & "0"
    End If
    GenSerialString = GenSerialString & Day(Now())
    If Hour(Now()) < 10 Then
        GenSerialString = GenSerialString & "0"
    End If
    GenSerialString = GenSerialString & Hour(Now())
    If Minute(Now()) < 10 Then
        GenSerialString = GenSerialString & "0"
    End If
    GenSerialString = GenSerialString & Minute(Now())
    If Second(Now()) < 10 Then
        GenSerialString = GenSerialString & "0"
    End If
    GenSerialString = GenSerialString & Second(Now())
    GenSerialString = GenSerialString & GenPassword(6, "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ")
End Function

 

'===================================================================================
'   函数原型:  ChangePage(URLTemplete,PageIndex)
'功    能:根据URL模板生成新的页面URL
'参    数:URLTempleteURL模板
'               PageIndex新的页码
'返 回 值:生成的URL
'涉及的表:无
'===================================================================================
Public Function ChangePage(URLTemplete, PageIndex)
    ChangePage = SetQueryString(URLTemplete, "PAGE", PageIndex)
End Function
'===================================================================================
'   函数原型:  BuildPath(sPath)
'功    能:根据指定的路径创建目录
'参    数:sPathURL模板
'返 回 值:如果成功,返回空字符串,否则返回错误信息和错误位置
'涉及的表:无
'===================================================================================
Public Function BuildPath(sPath)
    Dim iCnt
    Dim path
    Dim BasePath
    path = Split(sPath, "/")
    If Left(sPath, 1) = "/" Or Left(sPath, 1) = "/" Then
        BasePath = Server.MapPath("/")
    Else
        BasePath = Server.MapPath(".")
    End If
    Dim cPath, oFso
    cPath = BasePath
    BuildPath = ""
    Set oFso = Server.CreateObject("Scripting.FileSystemObject")
    For iCnt = LBound(path) To UBound(path)
        If Trim(path(iCnt)) <> "" Then
            cPath = cPath & "/" & Trim(path(iCnt))
            If Not oFso.FolderExists(cPath) Then
                On Error Resume Next
                oFso.CreateFolder cPath
                If Err.Number <> 0 Then
                    BuildPath = Err.Description & "[" & cPath & "]"
                    Exit For
                End If
                On Error GoTo 0
            End If
        End If
    Next
    Set oFso = Nothing
End Function

'===================================================================================
'   函数原型:  GetUserAgentInfo(ByRef vSoft,ByRef vOs)
'功    能:获取客户端操作系统和浏览器信息
'参    数:vSoft浏览器信息
'vOs操作系统信息
'返 回 值:无
'涉及的表:无
'===================================================================================
Public Function GetUserAgentInfo(ByRef vSoft, ByRef vOs)
    Dim theSoft
    theSoft = Request.ServerVariables("HTTP_USER_AGENT")
    ' 浏览器
    If InStr(theSoft, "NetCaptor") Then
        vSoft = "NetCaptor"
    ElseIf InStr(theSoft, "MSIE 6") Then
        vSoft = "MSIE 6.0"
    ElseIf InStr(theSoft, "MSIE 5.5+") Then
        vSoft = "MSIE 5.5"
    ElseIf InStr(theSoft, "MSIE 5") Then
        vSoft = "MSIE 5.0"
    ElseIf InStr(theSoft, "MSIE 4") Then
        vSoft = "MSIE 4.0"
    ElseIf InStr(theSoft, "Netscape") Then
        vSoft = "Netscape"
    ElseIf InStr(theSoft, "Opera") Then
        vSoft = "Opera"
    Else
        vSoft = "Other"
    End If
    ' 操作系统
    If InStr(theSoft, "Windows NT 5.0") Then
        vOs = "Windows 2000"
    ElseIf InStr(theSoft, "Windows NT 5.1") Then
        vOs = "Windows XP"
    ElseIf InStr(theSoft, "Windows NT 5.2") Then
        vOs = "Windows 2003"
    ElseIf InStr(theSoft, "Windows NT") Then
        vOs = "Windows NT"
    ElseIf InStr(theSoft, "Windows 9") Then
        vOs = "Windows 9x"
    ElseIf InStr(theSoft, "unix") Then
        vOs = "Unix"
    ElseIf InStr(theSoft, "linux") Then
        vOs = "Linux"
    ElseIf InStr(theSoft, "SunOS") Then
        vOs = "SunOS"
    ElseIf InStr(theSoft, "BSD") Then
        vOs = "BSD"
    ElseIf InStr(theSoft, "Mac") Then
        vOs = "Mac"
    Else
        vOs = "Other"
    End If
End Function
'===================================================================================
'   函数原型:  GetRegexpObject()
'功    能:获得一个正则表达式对象
'参    数:无
'返 回 值:正则表达式对象
'涉及的表:无
'===================================================================================
Public Function GetRegExpObject(sPattern)
    Dim r: Set r = New RegExp
    r.Global = True
    r.IgnoreCase = True
    r.MultiLine = True
    r.Pattern = sPattern
    Set GetRegExpObject = r
    Set r = Nothing
End Function
'===================================================================================
'   函数原型:  RegExpTest(pattern,string)
'功    能:正则表达式检测
'参    数:pattern模式字符串
'string待检查的字符串
'返 回 值:是否匹配
'涉及的表:无
'===================================================================================
Public Function RegExpTest(p, s)
    Dim r
    Set r = GetRegExpObject(p)
    RegExpTest = r.Test(s)
    Set r = Nothing
End Function
'===================================================================================
'   函数原型:  RegExpReplace(sSource,sPattern,sRep)
'功    能:正则表达式替换
'参    数:sSource要替换的源字符串
'sPattern模式字符串
'sRep要替换的目标字符串
'返 回 值:替换后的字符串
'涉及的表:无
'===================================================================================
Public Function RegExpReplace(sSource, sPattern, sRep)
    Dim r: Set r = GetRegExpTest(sPattern)
    RegExpReplace = r.Replace(sSource, sRep)
    Set r = Nothing
End Function
'===================================================================================
'   函数原型:  CreateXMLParser()
'功    能:创建一个尽可能高版本的XMLDOM
'参    数:无
'返 回 值:IDOMDocument对象
'涉及的表:无
'===================================================================================
Public Function CreateXMLParser()
    On Error Resume Next
    Set CreateXMLParser = Server.CreateObject("MSXML2.DOMDocument.4.0")
    If Err.Number <> 0 Then
        Err.Clear
        Set CreateXMLParser = Server.CreateObject("MSXML2.DOMDocument.3.0")
        If Err.Number <> 0 Then
            Err.Clear
            Set CreateXMLParser = Server.CreateObject("MSXML2.DOMDocument.2.6")
            If Err.Number <> 0 Then
                Err.Clear
                Set CreateXMLParser = Server.CreateObject("MSXML2.DOMDocument")
                If Err.Number <> 0 Then
                    Err.Clear
                    Set CreateXMLParser = Server.CreateObject("Microsoft.XMLDOM")
                    If Err.Number <> 0 Then
                        Err.Clear
                        Set CreateXMLParser = Nothing
                    Else
                        Exit Function
                    End If
                Else
                    Exit Function
                End If
            Else
                Exit Function
            End If
        Else
            Exit Function
        End If
    Else
        Exit Function
    End If
    On Error GoTo 0
End Function

 


'===================================================================================
'   函数原型:  CreateHTTPPoster()
'功    能:创建一个尽可能高版本的XMLHTTP
'参    数:ServerOrClient创建ServerXMLHTTP还是XMLHTTP
'返 回 值:IXMLHTTP对象
'涉及的表:无
'===================================================================================
Public Function CreateHTTPPoster(soc)
    Dim s
    If soc Then
        s = "ServerXMLHTTP"
    Else
        s = "XMLHTTP"
    End If
    On Error Resume Next
    Set CreateHTTPPoster = Server.CreateObject("MSXML2." & s & ".4.0")
    If Err.Number <> 0 Then
        Err.Clear
        Set CreateHTTPPoster = Server.CreateObject("MSXML2." & s & ".3.0")
        If Err.Number <> 0 Then
            Err.Clear
            Set CreateHTTPPoster = Server.CreateObject("MSXML2." & s)
            If Err.Number <> 0 Then
                Set CreateHTTPPoster = Nothing
            Else
                Exit Function
            End If
        Else
            Exit Function
        End If
    Else
        Exit Function
    End If
    On Error GoTo 0
End Function
'===================================================================================
'   函数原型:  XMLThrowError (errCode,errReason)
'功    能:抛出一个XML错误消息
'参    数:errCode错误编码
'errReason错误原因
'返 回 值:无
'涉及的表:无
'===================================================================================
Public Sub XMLThrowError(errCode, errReason)
    Response.Clear
    Response.ContentType = "text/xml"
    Response.Write "<?xml version=""1.0"" encoding=""gb2312"" standalone=""yes"" ?>" & vbCrLf & _
    "<ERROR CODE=""" & errCode & """ REASON=""" & errReason & """ />" & vbCrLf
    Response.Flush
    Response.End
End Sub
'===================================================================================
'   函数原型:  GetXMLNodeValue(ByRef xmlDom,sFilter,sDefValue)
'功    能:从一个XML文档中查找指定节点的值
'参    数:xmlDomXML文档
'sFilterXPATH定位字符串
'sDefValue默认值
'返 回 值:无
'涉及的表:无
'===================================================================================
Public Function GetXMLNodeValue(ByRef xmlDom, sFilter, sDefValue)
    Dim oNode: Set oNode = xmlDom.selectSingleNode(sFilter)
    If TypeName(oNode) = "Nothing" Or TypeName(oNode) = "Null" Or TypeName(oNode) = "Empty" Then
        GetXMLNodeValue = sDefValue
        Set oNode = Nothing
    Else
        GetXMLNodeValue = Trim(oNode.Text)
        Set oNode = Nothing
    End If
End Function
'===================================================================================
'   函数原型:  GetXMLNodeAttribute(ByRef xmlDom,sFilter,sName,sDefValue)
'功    能:从一个XML文档中查找指定节点的指定属性
'参    数:xmlDomXML文档
'sFilterXPATH定位字符串
'sName要查询的属性名称
'sDefValue默认值
'返 回 值:无
'涉及的表:无
'===================================================================================
Public Function GetXMLNodeAttribute(ByRef xmlDom, sFilter, sName, sDefValue)
    Dim oNode: Set oNode = xmlDom.selectSingleNode(sFilter)
    If TypeName(oNode) = "Nothing" Or TypeName(oNode) = "Null" Or TypeName(oNode) = "Empty" Then
        GetXMLNodeAttribute = sDefValue
        Set oNode = Nothing
    Else
        Dim pTemp: Set pTemp = oNode.getAttribute(sName)
        If TypeName(pTemp) = "Nothing" Or TypeName(pTemp) = "Null" Or TypeName(pTemp) = "Empty" Then
            GetXMLNodeAttribute = sDefValue
            Set oNode = Nothing
            Set pTemp = Nothing
        Else
            GetXMLNodeAttribute = Trim(pTemp.Value)
            Set oNode = Nothing
            Set pTemp = Nothing
        End If
    End If
End Function
'===================================================================================
'   函数原型:  GetQueryStringNumber (FieldName,defValue)
'功    能:从QueryString获取一个整数
'参    数:FieldName参数名
'defValue默认值
'返 回 值:无
'涉及的表:无
'===================================================================================
Public Function GetQueryStringNumber(FieldName, defValue)
    Dim r: r = Request.QueryString(FieldName)
    If r = "" Then
        GetQueryStringNumber = defValue
        Exit Function
    Else
        If Not IsNumeric(r) Then
            GetQueryStringNumber = defValue
            Exit Function
        Else
            On Error Resume Next
            r = CDbl(r)
            If Err.Number <> 0 Then
                Err.Clear
                GetQueryStringNumber = defValue
                Exit Function
            Else
                GetQueryStringNumber = r
            End If
            On Error GoTo 0
        End If
    End If
End Function
'===================================================================================
'   函数原型:  IIf (testExpr,value1,value2)
'功    能:相当于C/C++里面的 ?: 运算符
'参    数:testExprBoolean表达式
'value1testExpr=True 时的取值
'value2testExpr=False 时的取值
'返 回 值:如果testExpr为True返回value1否则返回value2
'涉及的表:无
'说    明:VBScript里没有Iif函数
'===================================================================================
Public Function IIf(testExpr, value1, value2)
    If testExpr = True Then
        IIf = value1
    Else
        IIf = value2
    End If
End Function


'===================================================================================
'   函数原型:  URLEncoding (v,f)
'功    能:URL编码函数
'参    数:v中英文混合字符串
'f是否对ASCII字符编码
'返 回 值:编码后的ASC字符串
'涉及的表:无
'===================================================================================
Public Function URLEncoding(v, f)
    Dim s, t, i, j, h, l, x: s = "": x = Len(v)
    For i = 1 To x
        t = Mid(v, i, 1): j = Asc(t)
        If j > 0 Then
            If f Then
                s = s & "%" & Right("00" & Hex(Asc(t)), 2)
            Else
                s = s & t
            End If
        Else
            If j < 0 Then j = j + &H10000
            h = (j And &HFF00) / &HFF
            l = j And &HFF
            s = s & "%" & Hex(h) & "%" & Hex(l)
        End If
    Next
    URLEncoding = s
End Function
'===================================================================================
'   函数原型:  URLDecoding (sIn)
'功    能:URL解码码函数
'参    数:vURL编码的字符串
'返 回 值:解码后的字符串
'涉及的表:无
'===================================================================================
Public Function URLDecoding(sIn)
    Dim s, i, l, c, t, n: s = "": l = Len(sIn)
    For i = 1 To l
        c = Mid(sIn, i, 1)
        If c <> "%" Then
            s = s & c
        Else
            c = Mid(sIn, i + 1, 2): i = i + 2: t = CInt("&H" & c)
            If t < &H80 Then
                s = s & Chr(t)
            Else
                c = Mid(sIn, i + 1, 3)
                If Left(c, 1) <> "%" Then
                    URLDecoding = s
                    Exit Function
                Else
                    c = Right(c, 2): n = CInt("&H" & c)
                    t = t * 256 + n - 65536
                    s = s & Chr(t): i = i + 3
                End If
            End If
        End If
    Next
    URLDecoding = s
End Function
'===================================================================================
'   函数原型:  Bytes2BSTR (v)
'功    能:UTF-8编码转换到正常的GB2312
'参    数:vUTF-8编码字节流
'返 回 值:解码后的字符串
'涉及的表:无
'===================================================================================
Public Function Bytes2BSTR(v)
    Dim r, i, t, n: r = ""
    For i = 1 To LenB(v)
        t = AscB(MidB(v, i, 1))
        If t < &H80 Then
            r = r & Chr(t)
        Else
            n = AscB(MidB(v, i + 1, 1))
            r = r & Chr(CLng(t) * &H100 + CInt(n))
            i = i + 1
        End If
    Next
    Bytes2BSTR = r
End Function


 %>

 
mysql 专业笔记 -- 第 23 章:正则表达式 正则表达式(REGEXP/RLIKE)用于在SQL中基于模式匹配数据。通过^、$界定开头或结尾,[ ]匹配字符集合,|实现“或”逻辑,可灵活筛选字段。例如,REGEXP '^N'匹配以N开头的姓名,REGEXP '4569$'匹配以4569结尾的电话号码。结合NOT REGEXP与AND条件,可实现复杂查询。结果返回1(匹配)或0(不匹配),配合IF和GROUP BY可统计匹配情况,提升数据检索效率。 阅读详情

相关推荐

一个漂亮的网站

本系统由小邹在线制作.<br>如有疑问请在小邹在线 seekmind.cn 提出<br>本系统正在完善增加中,欢迎各位提出宝贵意见.<br>日记本密码在diary/config.asp中修改<br>原始 admin 123456 (留言本同)<br>添加日记请在 点最下面的 ⌒_   退出管理

2008年国外最漂亮的50个网站欣赏

转至http://news.cnblogs.com/n/44079/ 上周跟大家分享了2008年国外50个最佳CSS设计,今天将向大家推荐国外50个2008年最漂亮的网站,08年的网页设计开始流行一些破旧的质感和一些植物、图腾效果,还有一些网站在追求一种平面中的立体感,让用户感觉更加身临其境。这50个网站可以说是风格各异,每个网站都有自己独特的设计风格。相信您在看完之后也会获得很多宝贵的灵感。 ...

weixin_34348111的博客 1万+

ASP常用模块

ASP.NET 经典常用模块大全

2006世界上基于CSS最美的50个网站

2006世界上基于CSS最美的50个网站

欧美网站的几款比较常用而且漂亮的调色动作

国外流行调色动作。解压后载入动作面板即可。

非常漂亮的一款个人网页模版2

非常漂亮的一款个人网页模版非常漂亮的一款个人网页模版2

asp网站计算器模块

asp编写的网站计算器模块

最新超级漂亮个人网站源码

最新超级漂亮个人网站源码!

100套免费欧美css网站模板上

css模板和js特效,100套免费欧美css网站模板上,还有下部,敬请期待!

国外破解网站大全

国外破解网站大全http://www.cracks.am ( 出名破解网站之一,包含各类型破解软件,注冊机等等,更新速度极快 ) 推荐http://cracks.lomalka.ru ( 一个破解软件,注冊机网站,更新速度快 ) http://www.crackway.com ( 一个破解,注冊机网站,更新速度一般 )http://cracks4u.us ( 一个破解软件,注冊机,注冊码储存网站,

亮亮雨月 4万+

国外一键分享网址

https://www.addtoany.com/buttons/for/website 转载于:https://www.cnblogs.com/sdsd123/p/10087551.html

weixin_30254435的博客 5440

漂亮网站

http://www.jetsetter.com/login https://www.gilt.com/ 附带2个free cron http://www.onlinecronjobs.com/en/login http://www.setcronjob.com/ http:...

chouni8194的博客 260

50个网站

  1, 看看自己具有哪个大明星的脸型,不过是英文的哦  http://www.play-analogia.com/cgi-bin/index/     2,※※超有意思的Flash网站,虚拟办公   http://agencynet.com     3,※※※※※※把书读出来,放在mp3、手机里听的听书网站。而且更新速度很快,像星辰变、哈利波特、盗墓笔记等热门小说、儿童故事、英语教程等。  走在...

weixin_30807779的博客 575

好看的网站

中企动力 牛商网 转载于:https://www.cnblogs.com/lvchenfeng/p/5366627.html

weixin_34252090的博客 372
上一篇: Java媒体架构(JMF)http://www.opzn.com/node/2256
下一篇: ASP常用的几个功能模块封装成函数调用(登录验证,状态切换。。) http://www.tsingfeng.com/archives/?article-89.html
chief1985
博客等级 码龄21年 1545粉丝 879原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值