02 2019 档案

摘要:import inspectdef get_current_function_name(): return inspect.stack()[1][3]class MyClass: def function_one(self): print "%s.%s invoked"%(self.__class_ 阅读全文

posted @ 2019-02-19 18:30 前端LHR 阅读(806) 评论(0) 推荐(0)

摘要:1. 在django project中创建 static文件夹 2.settings.py中配置要在 STATIC_URL = '/static/' 下边 STATICFILES_DIRS = [ os.path.join(BASE_DIR, 'static'), ] 或 STATIC_ROOT = 阅读全文

posted @ 2019-02-18 20:44 前端LHR 阅读(174) 评论(0) 推荐(0)

摘要:应该先把jquery-3.1.1.min.js文件先引入,然后再引入其他的js文件才可以,不然会找不到这个方法。 错误的引入方式: 正确方式: 参考自:https://blog.csdn.net/Winter_chen001/article/details/69526023 阅读全文

posted @ 2019-02-18 20:41 前端LHR 阅读(282) 评论(0) 推荐(0)

摘要:转自:http://blog.csdn.net/a921800467b/article/details/8579510为什么会报错“UnicodeEncodeError:'ascii' codec can't encode characters in position 0-1: ordinal no 阅读全文

posted @ 2019-02-17 17:51 前端LHR 阅读(365) 评论(0) 推荐(0)

导航