半点优化网 http://www.bdxc.net/
当前位置首页 > 网站技术问题> 正文

网站已经建好,如果没有源代码,网站会不会有安全的问题

2022-10-19 05:04:35 暂无评论 135 网站技术问题 问题   asp   源码

那要看你是买断的,还是需要每年交费的,如果是买断的,那么对方肯定是需要给出所有权限,以后出了问题需要自己负责;如果是每年交费的那种,所有维护、安全就由对方负责。

网站的js代码比较多.老师说不利于优化怎么破?

一般会遇到代码太多,不好处理的问题。

两个方法: Requirejs,将文件之间的引用关系解耦 TypeScript,将代码分开编写,编译成js文件。支持文件强制语法检查。

求大神帮忙看下这个网站代码有什么问题应该怎么修改?

第1,3,5个li里a都缺少>,rel和前面a要空一格

第一行的超链接代码没有反括号

网站代码问题!会的请进!

第一个绿色应该是语言包替换,那里不行,不过你可以包一层HTML在外面

'<span style=color:#fc4201''>'. lang('plugin/xj_robfloor', 'qlzzjxz').'</span>'

asp代码 网站源码问题 asp问题 asp时间

受<! #include file=filename.asp --> 宏限制
必须存在该文件并且会预先编译(不管前面是否加以条件)

经常有这样的要求,根据不同的需求要求include不同的文件
如各个人的不同设置,所以要求能动态include文件。

代码如下:

Function include(filename)
Dim re,content,fso,f,aspStart,aspEnd

set fso=CreateObject(Scripting.FileSystemObject)
set f=fso.OpenTextFile(server.mappath(filename))
content=f.ReadAll
f.close
set f=nothing
set fso=nothing

set re=new RegExp
re.pattern=^\s*=
aspEnd=1
aspStart=inStr(aspEnd,content,<%)+2
do while aspStart>aspEnd+1
Response.write Mid(content,aspEnd,aspStart-aspEnd-2)
aspEnd=inStr(aspStart,content,%\>)+2
Execute(re.replace(Mid(content,aspStart,aspEnd-aspStart-2),Response.Write ))
aspStart=inStr(aspEnd,content,<%)+2
loop
Response.write Mid(content,aspEnd)
set re=nothing
End Function

使用范例:

include(youinc.asp)

<%
dim stopday,nowday,str
stopday=2011-10-1
nowday=year(now())&-&month(now())&-&day(now())
str=cdate(stopday)-cdate(nowday)
response.write 距2011年10月1日还有&str&天
%>

猜你喜欢

随机文章


    Warning: require(): open_basedir restriction in effect. File(/www/wwwroot/bdxc.net/e/class/connect.php) is not within the allowed path(s): (/www/wwwroot/www.bdxc.net/:/tmp/) in /www/wwwroot/www.bdxc.net/1.php on line 4

    Warning: require(/www/wwwroot/bdxc.net/e/class/connect.php): failed to open stream: Operation not permitted in /www/wwwroot/www.bdxc.net/1.php on line 4

    Fatal error: require(): Failed opening required '/www/wwwroot/bdxc.net/e/class/connect.php' (include_path='.:/www/server/php/56/lib/php') in /www/wwwroot/www.bdxc.net/1.php on line 4