python学习
This commit is contained in:
15
common/libs/UrlManager.py
Normal file
15
common/libs/UrlManager.py
Normal file
@@ -0,0 +1,15 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
class UrlManager(object):
|
||||
def __init__(self):
|
||||
pass
|
||||
|
||||
@staticmethod
|
||||
def buildUrl( path ):
|
||||
return path
|
||||
|
||||
@staticmethod
|
||||
def buildStaticUrl(path):
|
||||
ver = "%s"%( 22222222 )
|
||||
path = "/static" + path + "?ver=" + ver
|
||||
return UrlManager.buildUrl( path )
|
||||
Reference in New Issue
Block a user