select c1 as res from t1 where c1=2
union
select c2 as res from t2 where c2=2
union
select c3 as res from t3 where c3=2
....額,知道啦,掃一掃可以識別出號碼...
toFixed了解一下
設(shè)置復(fù)制的內(nèi)容的標簽樣式user-select:all,
clipboard.js會返回你成功和失敗的回調(diào),失敗的時候提示‘長按復(fù)制’
我都是這么做的
1,可以直接把token拼在url上,然后在頁面里取,或者
// 把函數(shù)掛在window對象上來暴露給APP
let _this = this;
window.getParams= function(params) {
_this.getParams(params);
};
2,3一個意思
//調(diào)用原生代碼暴露的接口
appFun(state, { funName, val = null }) {
if (state.dev.type == 2) {
window.android[funName](val);//android是安卓原生代碼那邊自定義的
} else if (state.dev.type == 1) {
window.webkit.messageHandlers[funName].postMessage(val);
}
}
或者去了解下jsbridge
原生代碼讓他們自己搜去吧~
不知道答案,但是react這個16版本以后呢,就可以支持組建不需要返回一個容器,而是數(shù)組之類的,react16新特性,這樣既可以讓子組件和父組件同級,那么無論多后代的組件都可以;其他的還不確認。
你可以改成類似這樣的:
class extends React.Component{
constructor(props) {
super(props);
this.morewrapl = React.createRef();
}
render() {
<HomeMore ref={this.morewrapl} isloading={this.state.isloading} hasmore={this.state.hasmore} loadmore={this.getfitpage.bind(this)} />
}
}獲取 2D 圖紙構(gòu)件包圍框的方法跟 3D 模型的不太一樣,下面是樣例(從 Viewer3D.js 里頭截取來的):
function find2DBounds( fragList, fragId, dbId, bc ) {
const mesh = fragList.getVizmesh( fragId );
const vbr = new Autodesk.Viewing.Private.VertexBufferReader( mesh.geometry );
vbr.enumGeomsForObject( dbId, bc );
}
function get2DBounds( dbId, model ) {
const it = model.getData().instanceTree;
const fragList = model.getFragmentList();
let bounds = new THREE.Box3();
let bc = new Autodesk.Viewing.Private.BoundsCallback( bounds );
const dbId2fragId = model.getData().fragments.dbId2fragId;
const fragIds = dbId2fragId[dbId];
if( Array.isArray( fragIds ) ) {
for( let i = 0; i < fragIds.length; i++ ) {
find2DBounds( fragList, fragIds[i], dbId, bc );
}
} else if( typeof fragIds === 'number' ) {
find2DBounds( fragList, fragIds, dbId, bc );
}
return bc.bounds;
}
// 包圍匡
cosnt bondingBox = get2DBounds( dbId, viewer.model );$blocks.eq(i).hide(); $blocks是多個dom節(jié)點的集合。
setState 更新dom是異步的
const checkAndDoSomething = function () {
// code
}
this.setState().then(checkAndDoSomething)你可以了解一下require和import對吧。這兩個方法的用法。
你也可以去看看utils文件里面的顯示,導(dǎo)出了一些方法。這些方法是你能用的。
console.log($)也可以看看里面都有什么方法
elasticsearch安裝ik插件是嗎
FROM docker.elastic.co/elasticsearch/elasticsearch:5.4.1
# Add your elasticsearch plugins setup here
# Example: RUN elasticsearch-plugin install analysis-icu
RUN sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list
RUN apt-get update && apt-get install zip
RUN mkdir -p /usr/share/elasticsearch/plugins/ik
RUN cd /usr/share/elasticsearch/plugins/ik && wget https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v5.6.3/elasticsearch-analysis-ik-5.6.3.zip && unzip elasticsearch-analysis-ik-5.6.3.zip可以看看一些開源的組件庫的設(shè)計,比如:
https://www.iviewui.com/compo...
它設(shè)計了 2 個組件:
8.0版本 只有菜單漢化了 ...
鏈接:https://pan.baidu.com/s/1smMm... 密碼:vk3o
const test = [1, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]
const func = function (arry, length) {
let result = []
arry.forEach((ele, index) => {
const i = Math.floor(index / length)
console.log(i)
if (!result[i]) {
result[i] = []
}
})
return result
}
console.log(func(test, 5))
就是除法運算,根據(jù)需要的長度來組合二維數(shù)組
有點類似于九九乘法表
通過反編譯小程序源碼得知使用的是hproseRPC框架的數(shù)據(jù)交換個事
北大青鳥APTECH成立于1999年。依托北京大學(xué)優(yōu)質(zhì)雄厚的教育資源和背景,秉承“教育改變生活”的發(fā)展理念,致力于培養(yǎng)中國IT技能型緊缺人才,是大數(shù)據(jù)專業(yè)的國家
達內(nèi)教育集團成立于2002年,是一家由留學(xué)海歸創(chuàng)辦的高端職業(yè)教育培訓(xùn)機構(gòu),是中國一站式人才培養(yǎng)平臺、一站式人才輸送平臺。2014年4月3日在美國成功上市,融資1
北大課工場是北京大學(xué)校辦產(chǎn)業(yè)為響應(yīng)國家深化產(chǎn)教融合/校企合作的政策,積極推進“中國制造2025”,實現(xiàn)中華民族偉大復(fù)興的升級產(chǎn)業(yè)鏈。利用北京大學(xué)優(yōu)質(zhì)教育資源及背
博為峰,中國職業(yè)人才培訓(xùn)領(lǐng)域的先行者
曾工作于聯(lián)想擔任系統(tǒng)開發(fā)工程師,曾在博彥科技股份有限公司擔任項目經(jīng)理從事移動互聯(lián)網(wǎng)管理及研發(fā)工作,曾創(chuàng)辦藍懿科技有限責(zé)任公司從事總經(jīng)理職務(wù)負責(zé)iOS教學(xué)及管理工作。
浪潮集團項目經(jīng)理。精通Java與.NET 技術(shù), 熟練的跨平臺面向?qū)ο箝_發(fā)經(jīng)驗,技術(shù)功底深厚。 授課風(fēng)格 授課風(fēng)格清新自然、條理清晰、主次分明、重點難點突出、引人入勝。
精通HTML5和CSS3;Javascript及主流js庫,具有快速界面開發(fā)的能力,對瀏覽器兼容性、前端性能優(yōu)化等有深入理解。精通網(wǎng)頁制作和網(wǎng)頁游戲開發(fā)。
具有10 年的Java 企業(yè)應(yīng)用開發(fā)經(jīng)驗。曾經(jīng)歷任德國Software AG 技術(shù)顧問,美國Dachieve 系統(tǒng)架構(gòu)師,美國AngelEngineers Inc. 系統(tǒng)架構(gòu)師。