Open xgqfrms opened 6 years ago
https://github.com/xgqfrms-GitHub/Node-CLI-Tools/blob/master/bash-shell-chmod.md
#!/bin/sh
# echo "^-v-^ JSON DB is running in development env!" && npm run db
# echo "^-v-^ JSON DB is running in development env!" && nodemon -w ./server.js localhost 8888
JSONDB="nodemon -w ./server.js localhost 6666"
${JSONDB} &
# chmod +x db.sh
# sudo ./db.sh
# nodemon -w ./server.js localhost 8888
# /bin/sh db.sh
# ps -ef | grep node
# sudo kill -9 <PID>
Apache 代理
https://www.logitech.com/download/m337 https://www.logitech.com.cn/zh-cn/utilities/sitemap https://support.logitech.com.cn/zh_cn/product/bluetooth-mouse-m337 https://support.logitech.com.cn/zh_cn/product/bluetooth-mouse-m337/downloads#macPnlBar
https://support.microsoft.com/zh-cn/help/15290/windows-connect-bluetooth-device
https://www.dell.com/support/home/cn/zh/cndhs1/product-support/product/latitude-e5450-laptop/drivers
chmod +x
& linux var &
#!/bin/sh
# echo "^-v-^ JSON DB is running in development env!" && npm run db
# echo "^-v-^ JSON DB is running in development env!" && nodemon -w ./server.js localhost 8888
JSONDB="nodemon -w ./server.js localhost 6666"
${JSONDB} &
# chmod +x db.sh
# sudo ./db.sh
# nodemon -w ./server.js localhost 8888
# /bin/sh db.sh
# ps -ef | grep node
# sudo kill -9 <PID>
https://www.quirksmode.org/js/events_advanced.html
elem.parentElement.innerHTML = elem.parentElement.innerHTML;
var new_element = old_element.cloneNode(true);
old_element.parentNode.replaceChild(new_element, old_element);
https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener
addEventListener
https://johnresig.com/blog/flexible-javascript-events/ https://johnresig.com/apps/jselect/event.html
/* WRITE THESE FUNCTIONS */
function addEvent( obj, type, fn ) {
if ( obj.attachEvent ) {
obj["e"+type+fn] = fn;
obj[type+fn] = function() { obj["e"+type+fn]( window.event ); }
obj.attachEvent( "on"+type, obj[type+fn] );
} else
obj.addEventListener( type, fn, false );
}
function removeEvent( obj, type, fn ) {
if ( obj.detachEvent ) {
obj.detachEvent( "on"+type, obj[type+fn] );
obj[type+fn] = null;
} else
obj.removeEventListener( type, fn, false );
}
/* DON'T TOUCH THESE FUNCTIONS */
addEvent(window,"load",init);
function init()
{
var x = document.getElementById('navigation').getElementsByTagName('li');
for (var i=0;i<x.length;i++)
{
addEvent(x[i],"mouseover",showSubNav);
addEvent(x[i],"mouseout",hideSubNav);
addEvent(x[i],"mouseover",showBorder);
addEvent(x[i],"mouseout",hideBorder);
}
}
function removeBorders()
{
var x = document.getElementById('navigation').getElementsByTagName('li');
for (var i=0;i<x.length;i++)
{
removeEvent(x[i],"mouseover",showBorder);
removeEvent(x[i],"mouseout",hideBorder);
}
}
function showSubNav(e)
{
this.className += ' over';
}
function hideSubNav(e)
{
this.className = this.className.replace(/over/g,'');
noBubble(e);
}
function showBorder(e)
{
this.className += ' current';
}
function hideBorder(e)
{
this.className = this.className.replace(/current/g,'');
noBubble(e);
}
function noBubble(e)
{
if (e && e.stopPropagation)
e.stopPropagation();
else
window.event.cancelBubble = true;
}
https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/dispatchEvent
let event = new Event('build');
// Listen for the event.
elem.addEventListener('build', function (e) { /* ... */ }, false);
// Dispatch the event.
elem.dispatchEvent(event);
ice/scaffold-preview/ice-design-project-management
https://alibaba.github.io/ice/scaffold-preview/ice-design-project-management.html#/
https://alibaba.github.io/ice/scaffold
https://github.com/alibaba/ice/tree/gh-pages/scaffold-preview https://github.com/alibaba/ice/blob/gh-pages/scaffold-preview/ice-design-project-management.html
开源,为什么源码没提供呀?
https://g.alicdn.com/ice-assets/ice-design/ice-design-project-management/index.js
linux & chmod 777
https://stackoverflow.com/questions/8328481/chmod-777-to-a-folder-and-all-contents