Quasi-digital WebApp naming specification

zhaozj2021-02-12  147

Adopt "prefix _ name" mode.

Prefix: See the list below.

Name: Name the English noun or Chinese Pinyin, the first letter is capitalized.

1.Html form of form field variable begins with "i_" (Take the INPUT)

E.g:

......

......

2. The internal program variable of "V_" begins with "VARIABLES"

For example: v_name

3.ASP's function parameter variable begins with "P_" (Take Parameters "

E.g:

Function MD5 (

p_string

......

END FUNCTION

4. The global variable of "G_" is started with "Global"

For example: g_logined

5.ASP's configuration variable begins with "CFG_" (Take config meaning)

For example: cfg_wwwrootpath

6.ASP's session variable begins with "sess"

For example: SessuserInfo

7.ASP's object variable begins with "OBJ"

For example: Objconn

8.asp's Recordset variable begins with "RS"

For example: RSUsers

转载请注明原文地址:https://www.9cbs.com/read-6418.html

New Post(0)