web前端笔记
城少zero
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
webpack.config.js基础(一)
项目目录配置### src文件夹 -->放置项目文件### dist文件夹 -->放置打包生成的文件webpack.config.js配置var path =require('path')//node 引入路径模块module.exports={entry:"./src/index.js", //入口文件(多入口配置使用{}对象的方式配置)output:{filename:"[nam...原创 2018-06-14 13:45:00 · 1227 阅读 · 0 评论 -
webpack4初窥
环境搭建node(8.11.2)&&npm(6.1.0)使用npm 的npx命令基础入门建立项目文件夹在文件夹下安装webpack(4.10.0)还有webpack-clinpm init -y//创建包文件npm install -d webpack webpack-cli //局部安装(全局已经装了的)开始项目新建index.html 、index.js、main.js 三个...原创 2018-06-13 14:09:10 · 230 阅读 · 0 评论 -
vue学习笔记
组件使用全局注册:Vue.component('temp-name',{})局部注册:components:{'temp-name':{}}组件传值:props:['shuxing'] ||{} //传的是一个属性(自定义)示例如下://全局注册Vue.component('temp-item',{template:'<div>这是一个模板,我说第{{ptop.txt}}个模板&l...原创 2018-06-22 18:24:04 · 131 阅读 · 0 评论 -
angular1.3.8学习笔记
filter过滤器(orderBy)使用方式总结1:指令中使用<li ng-repeat="x in arr | orderBy:'age'"></li>//参数 x(自定义) 用来获取$scope(局部作用域)中的arr数组的值//参数 arr 控制器中定义的数据//符合 |//orderBy 过滤器名//字段 'age' 排序参考值视图层渲染...原创 2018-11-08 21:01:57 · 146 阅读 · 0 评论 -
angular开发总结
一、环境搭建开发依赖:{ "angular": "angularjs#1.3.8", "angular-ui-router": "0.2.11",//路由 "ng-file-upload": "^12.2.13", "ng-file-upload-shim": "^12.2.13",//文件上传 &q原创 2018-11-21 00:17:44 · 213 阅读 · 0 评论 -
jsonp原生实现跨域
原理:通过script标签的src获取不同源服务器端上的json数据(只能使用GET请求)前端发送请求:设置一个<label id='result'>用来接收数据,设置一个按钮<button id='btn'>给按钮绑定点击事件var btn=document.getElementById('btn');var result=document.getElement...原创 2018-12-15 16:56:28 · 251 阅读 · 0 评论 -
scss使用笔记
//变量定义和赋值$bl1:4;$bl2:8;//混入@mixin声明,使用@include引入@mixin common{ border: { style:solid; width: 1px; color: red; } background: randomColor(); width: 100%; ...原创 2019-01-22 15:57:36 · 172 阅读 · 0 评论
分享