摘要:
html: <!-- 表单数据--> <div id=""> <form id="thenform1"> <input type="hidden" name="page" value="1" /> </form> </div> js: data = $("#thenform1").serialize 阅读全文
摘要:
$.ajax({ url:url, type: "get", //这里是重点 xhrFields: { //允许添加cookie withCredentials: true }, dataType: "json", data:data, success:function(res){}, error: 阅读全文
摘要:
代码: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <style> .scroll_wrap{width:100%;display:flex;justify-content:center;align-ite 阅读全文
摘要:
代码: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <style> .scroll_wrap{width:100%;display:flex;justify-content:center;align-ite 阅读全文
摘要:
<div class="jump" > <div class="jumpLittleBox"> <div class="noticeListBox"> <div class="val btn-primary" name="2013">2013</div> <div class="val" name= 阅读全文
摘要:
在开发小程序的时候,发现在加载图片时并没有异常,但是后台却报错了。 比如: <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 阅读全文
摘要:
可以参考诸如cookie这样的缓存机制,我们自己“造”一个过期时间。在设置某缓存数据A的时候,我们可以同时设置一个过期时间值的数据缓存B;在下一次打开该页面的时候,不仅需要判断数据A是否存在,也需要比较B与当前时间,如果符合要求则使用本地缓存的数据A,否则则重新拉取数据并刷新A和B。以上逻辑翻译成代 阅读全文
摘要:
wxml <view class="activityDetail_bottom_box"> <view class="tabBox"> <block wx:for="{{tabList}}" wx:key="{{index}}"> <view class="tabStyle {{currentVal 阅读全文
摘要:
Python内置函数(1)——abs Python内置函数(2)——divmod Python内置函数(3)——max Python内置函数(4)——min Python内置函数(5)——pow Python内置函数(6)——round Python内置函数(7)——sum Python内置函数(8 阅读全文
摘要:
import inspectdef get_current_function_name(): return inspect.stack()[1][3]class MyClass: def function_one(self): print "%s.%s invoked"%(self.__class_ 阅读全文