This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let webpack = require('webpack'); | |
let path = require('path'); | |
module.exports = { | |
entry: { | |
app: './resources/assets/js/app.js', | |
vendor: ['vue', 'axios'] | |
}, | |
output: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// layer alert 的回调 | |
layer.alert('有了回调', {icon:1},function(index){ | |
//do something | |
layer.close(index); | |
}); | |
//错误信息放到父框里的最底部 | |
errorPlacement: function (error, element) { | |
error.appendTo(element.parents('.form-con')); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1、 | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
<style type="text/css"> | |
#navi ul li.hl a { | |
color: red; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 回到顶部 | |
$('.backtop').click(function(){ | |
$("body,html").animate({ | |
scrollTop:0}, 800); | |
return false; | |
}); | |
$(window).scroll(function(){ | |
var scroll = $(window).scrollTop(); | |
if (scroll >= 100){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" name="viewport"> | |
<meta content="yes" name="apple-mobile-web-app-capable"> | |
<meta content="black" name="apple-mobile-web-app-status-bar-style"> | |
<meta content="telephone=no" name="format-detection"> | |
<meta content="email=no" name="format-detection"> | |
<title>标题</title> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//引入gulp | |
var gulp = require('gulp'); | |
//引入组件 | |
var htmlmin = require('gulp-htmlmin'), | |
imagemin = require('gulp-imagemin'), | |
sass = require('gulp-ruby-sass'), | |
concat = require('gulp-concat'), | |
minifycss = require('gulp-minify-css'), | |
rename = require('gulp-rename'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ccc 1px 1px 8px 0 | |
0 1px 3px rgba(0,0,0,0.12),0 1px 2px rgba(0,0,0,0.24) | |
0 6px 12px rgba(0,0,0,.175) | |
0 0 3px 0 rgba(0,0,0,.2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
# vim: set fileencoding=utf8 | |
from __future__ import unicode_literals | |
import os | |
import sys | |
import re | |
import json | |
import collections |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<HTML> | |
<HEAD> | |
<meta http-equiv="refresh"content="0; url=http://s.click.taobao.com/t?e=m%3D2%26s%3Dz2azpXBAt4QcQipKwQzePDAVflQIoZepK7Vc7tFgwiFRAdhuF14FMcER0Spqs0%2BQ5x%2BIUlGKNpUHxNb6Z8dZquGfNq8ttQY0zhDO3lKQ2vB6UTNUu2cQbs7EZT4hNQpc"> | |
</HEAD> | |
</HTML> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* GitHub stylesheet for MarkdownPad (http://markdownpad.com) */ | |
/* Author: Nicolas Hery - http://nicolashery.com */ | |
/* Version: 29d1c5bc36da364ad5aa86946d420b7bbc54a253 */ | |
/* Source: https://github.com/nicolahery/markdownpad-github */ | |
/* RESET | |
=============================================================================*/ | |
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { | |
margin: 0; |
NewerOlder