js邏輯中部分公共方法分享

2022-06-30 20:06:10 字數 826 閱讀 3617

module.exports = 

},//獲取當前日期的字串,如20200312

gettodaystring() ,

// 時間戳轉換成字串

formattime(time, type = "y-m-d h:i:s") else

}return res;

},// 數字自動補零

prefixzero(num, n) ,

// 設定數字格式

setnumformat(num) else if (num / 1000000000 >= 1) else if (num / 1000000 >= 1) else if (num / 1000 >= 1) else

},//複製內容到剪貼簿

copycontent(type, content, show) else

textarea.select();

const msg = document.execcommand('copy') ? 'successful' : 'unsuccessful';

document.body.removechild(textarea);

alert(show);

} catch (err) {}}},

// 郵箱格式校驗

chkemail(stremail) else

},// 數字格式加逗號分隔

numformat(num) )+$)/g, '$1,');

return c;

},// 獲取位址列url引數

getquerystring(name) ,

}

C Graphics中部分方法的使用和理解

1 drawarc pen,rectangle,single,single 說明 繪製一段弧線,弧線是橢圓的一部分,橢圓是矩形rectangle的內切橢圓。引數 pen是畫弧線使用的畫筆 rectangle是橢圓所在的矩形 第乙個single決定了弧線的起點,矩形有乙個中心,中心點向右為x軸正方向,...

C Graphics中部分方法的使用和理解

1 drawarc pen,rectangle,single,single 說明 繪製一段弧線,弧線是橢圓的一部分,橢圓是矩形rectangle的內切橢圓。引數 pen是畫弧線使用的畫筆 rectangle是橢圓所在的矩形 第乙個single決定了弧線的起點,矩形有乙個中心,中心點向右為x軸正方向,...

整點 appium 中部分 api 的使用方法

private androiddriver driver before public void setup throws exception after public void teardown throws exception 2.截圖並儲存至本地 file screen driver getsc...