GitHdu
GitHdu
[demo](https://codepen.io/anon/pen/bXbMPY) ```html titlethisisistielkkeld tag1 tag2 titlethisisistielkkeld tag1 tag2 ``` ```css .container { display: flex; background: #ccc; width: 200px } .title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #a2a5ac; margin-right:...
```js //1. var loginForm = document.forms['login'] loginForm.onsubmit = function(e) { // 2. e.preventDefault() // 3. var username = loginForm.username.value var password = loginForm.password.value } // 4. loginForm.submit.disabled = true }...
[demo](http://js.jirengu.com/fupowaweqe/2/edit) ```html 布局 Flex 布局 Grid 布局 Shapes 布局 Flex 布局 Flex 布局 组件 按钮 输入框 下拉列表 单选框 ``` ```css ul { padding: 0; margin: 0; } .menu-wrap { width:...
```js var xhr = new XMLHttpRequest(); xhr.upload.onprogress = function () {} xhr.upload.onload = function () {} xhr.upload.onerror = function () {} xhr.open('post','/post',true) xhr.send(file) ``` ```js Array.from(files).filter((file)=>{ return file.size/1024/1024 {return promisify(file)})).then(res=>{...
1.encodeURI不转译特殊字符,而encodeURICompoent转译所有字符 2. ```js Object.keys(object1).map(key => key + "=" + encodeURIComponent(object1[key])).join("&") ``` 3. ```js location.search ``` 4. ```js const obj = {} for (var p of new URLSearchParams(location.search).entries()){ obj[p[0]]=p[1] }; console.log(obj)...
```js 1. const dialog = document.createElement('dialog') document.body.append(dialog) 2. //dialog.open = 'aa' 3. const btn = document.createElement('button') btn.innerText='button' dialog.appendChild(btn) btn.addEventListener('click', ()=>{ dialog.close() }) 4. dialog.showModal() 5. 其他dialog使用show方法,最后一个使用showModal ```
```js //1 const oTxtarea = document.querySelector('textarea'); //2 oTxtarea.rows=5 //3 const { height } = oTxtarea.getBoundingClientRect() //4 const {lineHeight} = getComputedStyle(oTxtarea) oTxtarea = parseFloat(lineHeight)*oTxtarea.rows+'px' ```
请问一下,热更新需要怎么配置
> 如果你想将容器的 8080 端口映射到宿主机的 9090 端口,你可以修改 -p 参数如下: docker run -d --name=maxkb -p 9090:8080 -v ~/.maxkb:/var/lib/postgresql/data 1panel/maxkb 如果要改容器的端口呢
很好的思路