摘要:
在一般的函数中: this.setData是正确的。 但当在函数中有个请求(wx.request)时: 这样会报错误:this.setData is not a function. 解决方法就是 :在请求(wx.request)外面添加:var that=this;将success中的 改为: 来源 阅读全文
摘要:
create user username identified by password; grant dba to username; 授权 或 grant connect, resource to username; 已授予的权限可以撤消 revoke connect, resource from username 阅读全文
摘要:
temp2 = "" for i in range(6): num = random.randrange(0,6) if num == 1 or num == 3 or num ==5: temp2 = temp2 + str(num) else: num2 =random.randrange(65,91) temp2 +=... 阅读全文
摘要:
示例代码和引用的语录都来自Raymond的演讲。这是我按我的理解整理出来的,希望你们理解起来跟我一样顺畅! 遍历一个范围内的数字 for i in [0, 1, 2, 3, 4, 5]: print i ** 2 for i in range(6): print i ** 2 更好的方法 for i 阅读全文