I hereby claim:
- I am SirM2z on github.
- I am coolm_z (https://keybase.io/coolm_z) on keybase.
- I have a public key whose fingerprint is B055 BC1A BD57 C6EF 6D66 5608 3B45 0968 C69D 4172
To claim this, I am signing this object:
const PENDING = 'pending'; | |
const FULFILLED = 'fulfilled'; | |
const REJECTED = 'rejected'; | |
function Promise(executor) { | |
let self = this; | |
self.status = PENDING; | |
self.onFulfilled = [];//ๆๅ็ๅ่ฐ | |
self.onRejected = []; //ๅคฑ่ดฅ็ๅ่ฐ | |
//PromiseA+ 2.1 | |
function resolve(value) { |
const PENDING = "pending"; | |
const RESOLVED = "resolved"; // fulfilled | |
const REJECTED = "rejected"; //rejected | |
class Promise { | |
// ๆ้ ๅฝๆฐๆฅๅไธไธชๆง่กๅจไฝไธบๅๆฐ | |
constructor(executor) { | |
// promise ็ถๆ | |
this.status = PENDING; | |
this.value = undefined; |
// value ๅฏ้ new Dateใๆถ้ดๆณใ"2016-08-05 14:22:09" ๆถ้ดๆ ผๅผ | |
// fmt ๅฏ้ ไปฅไธๆ ผๅผ(ไปฅๅไฝ็ฝฎ่ฐๆข) | |
// yyyy-MM-dd hh:mm:ss | |
// yyyy-MM-dd hh:mm:ss.S | |
// yyyy/MM/dd hh:mm:ss | |
// yyyyๅนดMMๆddๆฅ hhๆถmmๅss็ง | |
// yyyyMMddhhmmss | |
function formatDate (value, fmt) { | |
// let v = value.replace(/-/g, "/").substring(0, 19); | |
let date = new Date(value) |
(function() { | |
const NotificationInstance = Notification || window.Notification; | |
if (!!NotificationInstance) { | |
const permissionNow = NotificationInstance.permission; | |
// 'default' ็จๆท่ฟๆช่ขซ่ฏข้ฎๆฏๅฆๆๆ๏ผๆไปฅ้็ฅไธไผ่ขซๆพ็คบ | |
// 'granted' ่กจ็คบไนๅๅทฒ็ป่ฏข้ฎ่ฟ็จๆท๏ผๅนถไธ็จๆทๅทฒ็ปๆไบไบๆพ็คบ้็ฅ็ๆ้ | |
// 'denied' ็จๆทๅทฒ็ปๆ็กฎ็ๆ็ปไบๆพ็คบ้็ฅ็ๆ้ | |
if (permissionNow === 'granted') { | |
// ๅ ่ฎธ้็ฅ | |
CreatTask(); |
I hereby claim:
To claim this, I am signing this object: