请注明:姓名-公司-职位
以便审核进群资格,未注明则拒绝
充实每一天 发表于 2019-6-26 05:14 「充实计划-每日打卡」0626 奖励方式:回复跟帖(只包含内容1奖励10论坛币;同时包含1和2最高奖励50论坛币) ...
Notification对象 if(window.Notification){ if(Notification.permission == "granted"){ var notification = new Notification("桌面消息", {body:"这是由Notification对象创建的桌面消息!"});}else{ document.getElementById("rButton").onclick = function(){ Notification.requestPermission(); }; }; }else alert("你的浏览器不支持。");
if(window.Notification){ if(Notification.permission == "granted"){ var notification = new Notification("桌面消息", {body:"这是由Notification对象创建的桌面消息!"});}else{ document.getElementById("rButton").onclick = function(){ Notification.requestPermission(); }; }; }else alert("你的浏览器不支持。");
if(Notification.permission == "granted"){ var notification = new Notification("桌面消息", {body:"这是由Notification对象创建的桌面消息!"});}else{ document.getElementById("rButton").onclick = function(){ Notification.requestPermission(); }; };
var notification = new Notification("桌面消息", {body:"这是由Notification对象创建的桌面消息!"});
document.getElementById("rButton").onclick = function(){ Notification.requestPermission(); };
HTML5中的两个应用 本地存储实现了Web应用对数据本地化存储的功能,为Web应用操作本地数据提供了一个标准 离线应用满足Web应用在离线状态下的正常操作(延伸了Web应用的功能) sessionStorage(临时保存) localStorage(永久保存) 都可以使用的API: setItem(key, value); getItem(key); removeItem(key); clear(); key(index); 一个示例: <!DOCTYPE html> <html> <head> <title>9.1.1.html</title> <meta charset="utf-8" /> <script type="text/javascript"> function save(){ var title = document.getElementById("txtTitle").value; var content = document.getElementById("txtContent").value; localStorage.setItem(title, content); document.getElementById("txtTitle").value = ""; document.getElementById("txtContent").value = ""; loadAll(); } function search(){ var title = document.getElementById("searchTitle").value; if(title==""){ loadAll(); } else{ var content = localStorage.getItem(title); var searchContent = document.getElementById("searchContent"); searchContent.innerHTML = "<h2>"+title +"</h2>" + content; } }
本地存储实现了Web应用对数据本地化存储的功能,为Web应用操作本地数据提供了一个标准 离线应用满足Web应用在离线状态下的正常操作(延伸了Web应用的功能) sessionStorage(临时保存) localStorage(永久保存) 都可以使用的API: setItem(key, value); getItem(key); removeItem(key); clear(); key(index); 一个示例: <!DOCTYPE html> <html> <head> <title>9.1.1.html</title> <meta charset="utf-8" /> <script type="text/javascript"> function save(){ var title = document.getElementById("txtTitle").value; var content = document.getElementById("txtContent").value; localStorage.setItem(title, content); document.getElementById("txtTitle").value = ""; document.getElementById("txtContent").value = ""; loadAll(); } function search(){ var title = document.getElementById("searchTitle").value; if(title==""){ loadAll(); } else{ var content = localStorage.getItem(title); var searchContent = document.getElementById("searchContent"); searchContent.innerHTML = "<h2>"+title +"</h2>" + content; } }
setItem(key, value); getItem(key); removeItem(key); clear(); key(index);
<!DOCTYPE html> <html> <head> <title>9.1.1.html</title> <meta charset="utf-8" /> <script type="text/javascript"> function save(){ var title = document.getElementById("txtTitle").value; var content = document.getElementById("txtContent").value; localStorage.setItem(title, content); document.getElementById("txtTitle").value = ""; document.getElementById("txtContent").value = ""; loadAll(); } function search(){ var title = document.getElementById("searchTitle").value; if(title==""){ loadAll(); } else{ var content = localStorage.getItem(title); var searchContent = document.getElementById("searchContent"); searchContent.innerHTML = "<h2>"+title +"</h2>" + content; } }
【学习笔记】徐高-金融经济学二十五讲 -4
第1讲--03资产和资产的回报率--1
授课教授:徐高教授
课时共17:36
在开始享用资产定价的“正餐”之前,本节介绍了资产和资产的回报率这一“前菜”,为资产定价理论的学习做好准备工作。
接下来我们把问题讲得略微深入一些,给大家讲些有趣的问题,通过这些有趣的问题看到把金融市场的一些韵味给体现出来了。我们把Asset和Return 介绍一下,就是书上的1.2.1节。
【学习笔记】徐高-金融经济学二十五讲 -5
第1讲--03资产和资产的回报率--2
手写笔记:
【学习笔记】薛兆丰经济学讲义 -15
真实世界|经济学的视角-14
第007讲 | 铅笔的故事 -2
https://bbs.pinggu.org/thread-7182476-1-1.html