2021年4月16日

摘要: html: <!-- 表单数据--> <div id=""> <form id="thenform1"> <input type="hidden" name="page" value="1" /> </form> </div> js: data = $("#thenform1").serialize 阅读全文
posted @ 2021-04-16 17:00 前端LHR 阅读(131) 评论(0) 推荐(0) 编辑
摘要: $.ajax({ url:url, type: "get", //这里是重点 xhrFields: { //允许添加cookie withCredentials: true }, dataType: "json", data:data, success:function(res){}, error: 阅读全文
posted @ 2021-04-16 16:52 前端LHR 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 代码: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <style> .scroll_wrap{width:100%;display:flex;justify-content:center;align-ite 阅读全文
posted @ 2021-04-16 16:32 前端LHR 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 代码: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <style> .scroll_wrap{width:100%;display:flex;justify-content:center;align-ite 阅读全文
posted @ 2021-04-16 16:30 前端LHR 阅读(245) 评论(0) 推荐(0) 编辑

2020年9月8日

摘要: <div class="jump" > <div class="jumpLittleBox"> <div class="noticeListBox"> <div class="val btn-primary" name="2013">2013</div> <div class="val" name= 阅读全文
posted @ 2020-09-08 14:08 前端LHR 阅读(2249) 评论(0) 推荐(0) 编辑

2020年3月21日

摘要: 在开发小程序的时候,发现在加载图片时并没有异常,但是后台却报错了。 比如: <image src="{{domainName + '/%E7%BD%91%E8%AF%BE-icon-%E6%96%B0%E5%BB%BA%E4%B8%93%E8%BE%91.png'}}"></image> 大概是ht 阅读全文
posted @ 2020-03-21 14:46 前端LHR 阅读(2131) 评论(0) 推荐(0) 编辑
摘要: 可以参考诸如cookie这样的缓存机制,我们自己“造”一个过期时间。在设置某缓存数据A的时候,我们可以同时设置一个过期时间值的数据缓存B;在下一次打开该页面的时候,不仅需要判断数据A是否存在,也需要比较B与当前时间,如果符合要求则使用本地缓存的数据A,否则则重新拉取数据并刷新A和B。以上逻辑翻译成代 阅读全文
posted @ 2020-03-21 10:01 前端LHR 阅读(3955) 评论(0) 推荐(0) 编辑

2020年3月12日

摘要: wxml <view class="activityDetail_bottom_box"> <view class="tabBox"> <block wx:for="{{tabList}}" wx:key="{{index}}"> <view class="tabStyle {{currentVal 阅读全文
posted @ 2020-03-12 21:15 前端LHR 阅读(246) 评论(0) 推荐(0) 编辑

2019年3月23日

摘要: Python内置函数(1)——abs Python内置函数(2)——divmod Python内置函数(3)——max Python内置函数(4)——min Python内置函数(5)——pow Python内置函数(6)——round Python内置函数(7)——sum Python内置函数(8 阅读全文
posted @ 2019-03-23 23:55 前端LHR 阅读(192) 评论(0) 推荐(1) 编辑

2019年2月19日

摘要: 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 阅读(745) 评论(0) 推荐(0) 编辑

导航