上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 27 下一页
摘要: JSON with Padding参考 1. https://zh.wikipedia.org/wiki/JSONP 2. http://www.runoob.com/json/json jsonp.html 使用步骤 1. 在\中写一个回调函数callBackFunction(response)。 阅读全文
posted @ 2018-06-14 23:39 Rocin 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 现象 买洗衣机给的电子发票上面有增值税,很好奇为啥由消费者承担? 答案 1. https://www.zhihu.com/question/21030724 2. https://zhidao.baidu.com/question/584597942.html?qbl=relate_question 阅读全文
posted @ 2018-06-13 17:35 Rocin 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 1.1 如果导入的模块除了定义函数之外还中有可以执行代码,那么Python解释器在导入这个模块时就会执行这些代码。 module1.py: test.py: 1.2 模块编写的目的是被调用;一般来说,不是主程序入口;假如直接运行该模块,使用if \__name__ == '\__main__': m 阅读全文
posted @ 2018-06-13 15:44 Rocin 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 注册/移除事件的三种方式 1. onclick 2. addEventListener 3. attachEvent 兼容代码 阅读全文
posted @ 2018-06-12 08:55 Rocin 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 参考 1. https://stackoverflow.com/questions/7794301/window onunload is not working properly in chrome browser can any one help me 解决办法 1. 用onbeforeunloa 阅读全文
posted @ 2018-06-11 21:35 Rocin 阅读(975) 评论(0) 推荐(0) 编辑
摘要: 传送门 1. https://stackoverflow.com/a/20980488/5955399 区别 1. json:用于字符串(unicode text)和python基本数据类型间进行转换。优点:跨语言跨平台,应用范围大,体积小;缺点:只能支持 int/str/list/tuple/di 阅读全文
posted @ 2018-06-11 18:25 Rocin 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 参考 1. https://en.wikipedia.org/wiki/Serialization 2. https://en.wikipedia.org/wiki/Persistence_(computer_science) 3. https://www.zhihu.com/question/31 阅读全文
posted @ 2018-06-11 18:01 Rocin 阅读(738) 评论(0) 推荐(0) 编辑
摘要: 1. 字符串 1.1 字符串的不可变性 1.2 创建字符串对象(包装类,里面有对字符串的操作方法) 2. 字符串的常用方法 字符串所有的方法,都不会修改字符串本身(字符串是不可变的),操作完成会返回一个新的字符串 3. 案例1. 截取字符串"我爱中华人民共和国",中的"中华" 方法1. substr 阅读全文
posted @ 2018-06-10 14:57 Rocin 阅读(585) 评论(0) 推荐(0) 编辑
摘要: 1. 概念 1. 基本类型是没有方法的 2. 包装类型作用是为了 方便操作基本数据类型 阅读全文
posted @ 2018-06-10 13:28 Rocin 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 1. 创建数组 方式1. new关键字 方式2. 使用字面量创建数组对象 2. 检测一个对象是否是数组 1. instanceof(运算符),[] instanceof Array 2. Array.isArray(),HTML5方法,有兼容性问题 3. 数组常用方法 具体查MDN 4. 实现arr 阅读全文
posted @ 2018-06-10 12:02 Rocin 阅读(333) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 27 下一页