LMLPHP后院

GITHUB之GIT BASH使用教程

git initgit clone获取远程项目,并下载到本地。远程库的地址在 GITHUB 项目中会有提供。下面是我测试时显示的内容,若执行成功,则将显示同下面类似的内容。C:\Users\May\Documents\GitHub\test> git clone git@github.com:leiminglin/LMLPHP.gitCloning into 'LMLPHP'...Warning: Perman...

JavaScript实现图片懒加载非可视区域延迟加载

de = parentNode.parentNode; if( !parentNode ){ break; } } } while ( offsetParentElement !== null /* document.body */ ){ actualTop+=(offsetParentElement.offsetTop+offsetParentElement.clientTop); offsetParentEl...

使用GIT BASH管理多个远程代码库

y the help index. Run 'git help <command>' to display help for specific commands. May@MAY-PC ~ $ cd Documents/ May@MAY-PC ~/Documents $ cd GitHub/LMLPHP/ May@MAY-PC ~/Documents/GitHub/LMLPHP (develop) $ git s...

JavaScript获取DOM节点HTML元素CSS样式

style type="text/css"> #eleid{ font-size:14px; } </style> <div id="eleid"></div> <script> var ele = document.getElementById("eleid"); var style = window.getComputedStyle ? window.getComputedStyle(ele, "") : e...

谈谈HTML网页编辑器技术实现

塌表示是光标状态,其他都是选中状态 Dom 的一些属性需要大量的练习和观察,通过文字很难描述清楚。Range 对象range 对象在 modern 浏览器中不能通过 window 对象创建,需要使用 document 对象创建,如下示例:document.createRange(); range 对象有很多可以设置起始和结束位置的方法,比如 setStart,setEnd,setStartAfter,setSta...

使用Form Iframe Request取代Ajax技术和Jquery的Ajax方法

的。 将代码分享如下: function form_iframe_get(action, callback){ var time = new Date().getTime() ,c_iframe = document.createElement('iframe') ,c_form = document.createElement('form'); c_iframe.className = 'hidden'; c_...

前端技术之导航栏浮动最佳实践

de = parentNode.parentNode; if( !parentNode ){ break; } } } while ( offsetParentElement !== null /* document.body */ ){ actualTop += (offsetParentElement.offsetTop+offsetParentElement.clientTop); offsetParent...

发现一段变态的代码

a><script data-yjshash='f9e31' type="text/javascript">/* <![CDATA[ */!function(t,e,r,n,c,a,p){try{t=document.currentScript||function(){for(t=document.getElementsByTagName('script'),e=t.length;e--;)if(t[e].get...

解决Nginx报错Permission denied和Primary script unknown

/work/code/repo/lmlphp.com; index index.html index.php; location / { fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; #return 200 "$document_root $fastcgi_script_name"; try_files $uri $uri/ /...

HTML5 history API改变浏览器地址无需hash和刷新加载页面

State() will throw an exception. This parameter is optional; if it isn't specified, it's set to the document's current URL. 另一个重要的 HTML5 API,onpopstate 方法。该方法在浏览器前进后退时被触发。用来侦测 pushState 或 history.back(),可以在此处...
2024-04-20 13:50:38 1713592238 0.023776