-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
604 lines (359 loc) · 19.8 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>GW.iron</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="description" content="gwiron blog">
<meta property="og:type" content="website">
<meta property="og:title" content="GW.iron">
<meta property="og:url" content="http://yoursite.com/index.html">
<meta property="og:site_name" content="GW.iron">
<meta property="og:description" content="gwiron blog">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="GW.iron">
<meta name="twitter:description" content="gwiron blog">
<link rel="icon" href="/image/favicon.ico">
<link href="//fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="/css/style.css">
</head>
<body>
<div id="container">
<div id="wrap">
<header id="header">
<div id="banner"></div>
<div id="header-outer" class="outer">
<div id="header-title" class="inner">
<h1 id="logo-wrap">
<a href="/" id="logo">GW.iron</a>
</h1>
<h2 id="subtitle-wrap">
<a href="/" id="subtitle">赢在心态</a>
</h2>
</div>
<div id="header-inner" class="inner">
<nav id="main-nav">
<a id="main-nav-toggle" class="nav-icon"></a>
<a class="main-nav-link" href="/">首页</a>
<a class="main-nav-link" href="/archives">归档</a>
</nav>
<nav id="sub-nav">
<a id="nav-search-btn" class="nav-icon" title="搜索"></a>
</nav>
<div id="search-form-wrap">
<form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" results="0" class="search-form-input" placeholder="Search"><button type="submit" class="search-form-submit"></button><input type="hidden" name="sitesearch" value="http://yoursite.com"></form>
</div>
</div>
</div>
</header>
<div class="outer">
<section id="main">
<article id="post-ralasafe" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-meta">
<a href="/2016/12/05/ralasafe/" class="article-date">
<time datetime="2016-12-05T15:41:49.000Z" itemprop="datePublished">2016-12-05</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2016/12/05/ralasafe/">php权限管理</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
<h3 id="权限管理介绍、与简单实现思想"><a href="#权限管理介绍、与简单实现思想" class="headerlink" title="权限管理介绍、与简单实现思想"></a>权限管理介绍、与简单实现思想</h3>
<p class="article-more-link">
<a href="/2016/12/05/ralasafe/#more">阅读原文</a>
</p>
</div>
<footer class="article-footer">
<a data-url="http://yoursite.com/2016/12/05/ralasafe/" data-id="ciwc8y1it000e04txrcb6vwi3" class="article-share-link">Share</a>
<ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/php-ralasafe/">php | ralasafe</a></li></ul>
</footer>
</div>
</article>
<article id="post-body-address-display-no" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-meta">
<a href="/2016/09/29/body-address-display-no/" class="article-date">
<time datetime="2016-09-29T03:12:23.000Z" itemprop="datePublished">2016-09-29</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2016/09/29/body-address-display-no/">完美解决,浏览器下拉显示网址问题 | 完美解决,使用原生 scroll 写下拉刷新</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
<p>在 web 开发过程中我们经常遇到,不想让用户下拉看到我的地址,也有时候在 div 中没有惯性滚动,就此也出了 iScroll 这种关于滚动条的框架,但是就为了一个体验去使用一个框架好像又不值得,今天我就来说说我的思路</p>
<p class="article-more-link">
<a href="/2016/09/29/body-address-display-no/#more">阅读原文</a>
</p>
</div>
<footer class="article-footer">
<a data-url="http://yoursite.com/2016/09/29/body-address-display-no/" data-id="ciwc8y1jp000v04tx5wkob3ft" class="article-share-link">Share</a>
<ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/js-css/">js | css</a></li></ul>
</footer>
</div>
</article>
<article id="post-dbclick" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-meta">
<a href="/2016/05/21/dbclick/" class="article-date">
<time datetime="2016-05-21T08:32:34.000Z" itemprop="datePublished">2016-05-21</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2016/05/21/dbclick/">给元素添加 双击和单击事件</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
<h2 id="给元素添加-双击和单击事件"><a href="#给元素添加-双击和单击事件" class="headerlink" title="给元素添加 双击和单击事件"></a>给元素添加 双击和单击事件</h2>
<p class="article-more-link">
<a href="/2016/05/21/dbclick/#more">阅读原文</a>
</p>
</div>
<footer class="article-footer">
<a data-url="http://yoursite.com/2016/05/21/dbclick/" data-id="ciwc8y1it000g04tx07fonmgj" class="article-share-link">Share</a>
<ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/js/">js</a></li></ul>
</footer>
</div>
</article>
<article id="post-more-cascade-select" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-meta">
<a href="/2016/04/10/more-cascade-select/" class="article-date">
<time datetime="2016-04-10T03:08:06.000Z" itemprop="datePublished">2016-04-10</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2016/04/10/more-cascade-select/">多个 select 级联的时,的解决方法</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
<h1 id="简介"><a href="#简介" class="headerlink" title="简介"></a>简介</h1><p>我们在电商网站上购买东西时,都会需要输入地址,因为用户输入省份之类的总是不能很好的与数据库的数据对应上,这时我们开发者们,一般都是给用户提供选择接口,而不是让用户直接输入,这时候又带来了一个问题,因为这些选择框是级联关系,当我们选择完城市以后,下面对应的省份,省份对应的市,市对应的区,都需要依次改变,但是改变省份时,国家则不会变。所以就需要一个解决方案来解决一下,这直接的关系。</p>
<p class="article-more-link">
<a href="/2016/04/10/more-cascade-select/#more">阅读原文</a>
</p>
</div>
<footer class="article-footer">
<a data-url="http://yoursite.com/2016/04/10/more-cascade-select/" data-id="ciwc8y1j9000k04tx1h2gamnm" class="article-share-link">Share</a>
<ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/js/">js</a></li></ul>
</footer>
</div>
</article>
<article id="post-jq-attr-prop" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-meta">
<a href="/2016/04/10/jq-attr-prop/" class="article-date">
<time datetime="2016-04-10T02:57:12.000Z" itemprop="datePublished">2016-04-10</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2016/04/10/jq-attr-prop/">jq 的 attr 和 prop 的区别</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
<p>在使用 jq 的 attr 获取 checkbox 属性 checked 值得时候 遇到的坑</p>
<p class="article-more-link">
<a href="/2016/04/10/jq-attr-prop/#more">阅读原文</a>
</p>
</div>
<footer class="article-footer">
<a data-url="http://yoursite.com/2016/04/10/jq-attr-prop/" data-id="ciwc8y1it000d04txias3yjxu" class="article-share-link">Share</a>
<ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/jq/">jq</a></li></ul>
</footer>
</div>
</article>
<article id="post-regular-group" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-meta">
<a href="/2016/03/27/regular-group/" class="article-date">
<time datetime="2016-03-27T02:49:52.000Z" itemprop="datePublished">2016-03-27</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2016/03/27/regular-group/">正则分组</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
<p>在学习php正则的时候,遇到了(?=),(?<=)等符号,百度了一下没找到讲的很清楚的,就自己整理一下</p>
<p class="article-more-link">
<a href="/2016/03/27/regular-group/#more">阅读原文</a>
</p>
</div>
<footer class="article-footer">
<a data-url="http://yoursite.com/2016/03/27/regular-group/" data-id="ciwc8y1j9000o04txtxn9alao" class="article-share-link">Share</a>
<ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/正则表达式/">正则表达式</a></li></ul>
</footer>
</div>
</article>
<article id="post-viewport" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-meta">
<a href="/2016/03/24/viewport/" class="article-date">
<time datetime="2016-03-24T04:53:29.000Z" itemprop="datePublished">2016-03-24</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2016/03/24/viewport/">移动开发viewport</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
<p>对于设置完美适配移动设备 viewport</p>
<p class="article-more-link">
<a href="/2016/03/24/viewport/#more">阅读原文</a>
</p>
</div>
<footer class="article-footer">
<a data-url="http://yoursite.com/2016/03/24/viewport/" data-id="ciwc8y1j9000m04tx5uvhlwpk" class="article-share-link">Share</a>
<ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/css/">css</a></li></ul>
</footer>
</div>
</article>
<article id="post-padding-border-width" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-meta">
<a href="/2016/03/18/padding-border-width/" class="article-date">
<time datetime="2016-03-18T03:03:14.000Z" itemprop="datePublished">2016-03-18</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2016/03/18/padding-border-width/">padding/border与width的关系</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
<p>本文讲述 padding / border 的设置后是否对 width 有影响,width 等于 auto 与 100% 的区别<br>
<p class="article-more-link">
<a href="/2016/03/18/padding-border-width/#more">阅读原文</a>
</p>
</div>
<footer class="article-footer">
<a data-url="http://yoursite.com/2016/03/18/padding-border-width/" data-id="ciwc8y1it000h04txd3e64bb0" class="article-share-link">Share</a>
<ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/css/">css</a></li></ul>
</footer>
</div>
</article>
<article id="post-assignment" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-meta">
<a href="/2016/03/15/assignment/" class="article-date">
<time datetime="2016-03-15T04:08:25.000Z" itemprop="datePublished">2016-03-15</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2016/03/15/assignment/">对于js赋值运算的理解</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
<h1 id="简介"><a href="#简介" class="headerlink" title="简介"></a>简介</h1><ol>
<li>js引擎由于为了效率,很多时候的非直接量赋值都不是copy一份在赋值给新的变量,而是一个引用<br>ps:直接量:直接值数字字符串等</li>
<li>为什么使用len = doms.length; 里的len效率要比doms.length高
<p class="article-more-link">
<a href="/2016/03/15/assignment/#more">阅读原文</a>
</p>
</div>
<footer class="article-footer">
<a data-url="http://yoursite.com/2016/03/15/assignment/" data-id="ciwc8y1hs000104txbgquyx1k" class="article-share-link">Share</a>
<ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/js/">js</a></li></ul>
</footer>
</div>
</article>
<article id="post-closeure-for-capture" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-meta">
<a href="/2016/03/12/closeure-for-capture/" class="article-date">
<time datetime="2016-03-12T03:03:02.000Z" itemprop="datePublished">2016-03-12</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2016/03/12/closeure-for-capture/">利用闭包解决for循环里onclick事件不能捕捉实时i值问题</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
<h3 id="问题描述"><a href="#问题描述" class="headerlink" title="问题描述"></a>问题描述</h3><p>我们都知道,如果我们对于一组元素(相同的标签)同时进行onclick事件处理的时候(在需要获取到索引的时候),一般是写一个for循环,但是onclick是一个异步调用的,所以会带来一个问题,当我们触发这个事件的时候,我们能获取的i值是for完整执行完后i的值,而不能获取到代码顺序里i的值,看一个例子<br>
<p class="article-more-link">
<a href="/2016/03/12/closeure-for-capture/#more">阅读原文</a>
</p>
</div>
<footer class="article-footer">
<a data-url="http://yoursite.com/2016/03/12/closeure-for-capture/" data-id="ciwc8y1hs000404txe0dwzni0" class="article-share-link">Share</a>
<ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/js/">js</a></li></ul>
</footer>
</div>
</article>
<nav id="page-nav">
<span class="page-number current">1</span><a class="page-number" href="/page/2/">2</a><a class="extend next" rel="next" href="/page/2/">__('next') »</a>
</nav>
</section>
<aside id="sidebar">
<div class="widget-wrap">
<h3 class="widget-title">标签</h3>
<div class="widget">
<ul class="tag-list"><li class="tag-list-item"><a class="tag-list-link" href="/tags/css/">css</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/jq/">jq</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/js/">js</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/js-css/">js | css</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/php-ralasafe/">php | ralasafe</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/正则表达式/">正则表达式</a></li></ul>
</div>
</div>
<div class="widget-wrap">
<h3 class="widget-title">标签云</h3>
<div class="widget tagcloud">
<a href="/tags/css/" style="font-size: 15px;">css</a> <a href="/tags/jq/" style="font-size: 10px;">jq</a> <a href="/tags/js/" style="font-size: 20px;">js</a> <a href="/tags/js-css/" style="font-size: 10px;">js | css</a> <a href="/tags/php-ralasafe/" style="font-size: 10px;">php | ralasafe</a> <a href="/tags/正则表达式/" style="font-size: 10px;">正则表达式</a>
</div>
</div>
<div class="widget-wrap">
<h3 class="widget-title">归档</h3>
<div class="widget">
<ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/12/">十二月 2016</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/09/">九月 2016</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/05/">五月 2016</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/04/">四月 2016</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/03/">三月 2016</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/02/">二月 2016</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/01/">一月 2016</a></li></ul>
</div>
</div>
<div class="widget-wrap">
<h3 class="widget-title">最新文章</h3>
<div class="widget">
<ul>
<li>
<a href="/2016/12/05/ralasafe/">php权限管理</a>
</li>
<li>
<a href="/2016/09/29/body-address-display-no/">完美解决,浏览器下拉显示网址问题 | 完美解决,使用原生 scroll 写下拉刷新</a>
</li>
<li>
<a href="/2016/05/21/dbclick/">给元素添加 双击和单击事件</a>
</li>
<li>
<a href="/2016/04/10/more-cascade-select/">多个 select 级联的时,的解决方法</a>
</li>
<li>
<a href="/2016/04/10/jq-attr-prop/">jq 的 attr 和 prop 的区别</a>
</li>
</ul>
</div>
</div>
</aside>
</div>
<footer id="footer">
<div class="outer">
<div id="footer-info" class="inner">
© 2016 骚辉<br>
Powered by <a href="http://hexo.io/" target="_blank">Hexo</a>
</div>
</div>
</footer>
</div>
<nav id="mobile-nav">
<a href="/" class="mobile-nav-link">首页</a>
<a href="/archives" class="mobile-nav-link">归档</a>
</nav>
<script src="http://apps.bdimg.com/libs/jquery/2.1.1/jquery.min.js"></script>
<link rel="stylesheet" href="/fancybox/jquery.fancybox.css">
<script src="/fancybox/jquery.fancybox.pack.js"></script>
<script src="/js/script.js"></script>
</div>
</body>
</html>