2018-09-18 react学习(二):props & state
在搭建后的react环境下进入src/index.js文件中写业务:1.引入react & react-dom两个包image.png通过console.log我们发现reactdome自带了一个renderAPI,我们可以通过该api来传递并渲染:语法:ReactDom.render(jsx元素,注入点,回调)eg:image.png效果如下:image.png添加多个元素语法(一定要有…- 1k
- 0
移动端如何进行尺寸自适应(px转rem)
写移动端项目了,首先考虑到的问题是如何让页面在不同尺寸的移动端能够得到完美的渲染。最开始的时候想法是设置@media的min和max,但是觉得不够方便。对mete进行了如下设置,并引用了手淘的js文件。<script src="http://g.tbcdn.cn/mtb/lib-flexible/0.3.4/??flexible_css.js,flexible.js"&g…- 1.9k
- 0
vue axios 的数据获取
运行环境: 本地服务器遇到的问题:1- get方法拿不到静态数据解决方法:1-1 :请先检查URL是否正确 ; 1-2:请确认this指向(箭头函数时this指向实例,不然指向window)2- 跨域拿php数据(php数据用get & post都拿不到,改成了request就拿到了)3-蠢哭了,postPhp方法的method多写了一个s !!!!!get静态数据获取:get方法:pos…- 1.7k
- 0
mongodb基本命令使用 (不定时更新)
启动服务短 - mongodb显示库 - show dbs (初始情况下只有admin & local & config三个库)tips1: test库是一个临时库查看当前库 -db建库/切换激活库 - use <库名>删当前库 db.dropDatabse()在当前库下建集合(表) - db.createCollection('集合名')查看当前集…- 1.5k
- 0
mac下mongodb安装步骤
在mac安装mongodb之前需要先安装homebrew。1.什么是howmbrew? --- macOS 缺失的软件包的管理器 (喜欢它的小图标?)官网:https://brew.sh/1.1 安装homebrew:/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/mas…- 2.2k
- 0
多级菜单-Multi-Level Menu
Today’s Blueprint is a simple menu with multiple levels. The idea is to animate each menu item once a level is changed. The animation starts with the item clicked and the delays are propagated through…- 4.9k
- 0
堆叠的页面导航-Page Stack Navigation
This Blueprint is page navigation effect based on the Dribbble shot Stacked navigation by Ilya Kostin. The idea is to show a navigation when clicking on the menu button and transform all pages in 3D a…- 3.9k
- 0
缩放幻灯片-Zoom Slider
Today’s Blueprint is a simple content slider with depth-like zoom functionality. Each slide has a predefined zoom area that will be used to calculate the appropriate scale value for a fullscreen fill.…- 3.3k
- 0
产品网格布局-Filterable Product Grid
This Blueprint is a responsive Isotope-powered product grid layout where each grid item is a Flickity image slider. A small cart icon animation indicates that a product was added to the shopping cart.…- 3.4k
- 0
好看的产品对比布局-Product Comparison Layout & Effect
This Blueprint is a responsive product grid layout with comparison functionality. A maximum of three items can be selected for the product comparison. The comparison view shows flexbox-powered columns…- 3.3k
- 0
谷歌瀑布流布局-Google Grid Gallery
This Blueprint is a responsive grid gallery based on the gallery by Google for the Chromebook Getting Started guide. In this Blueprint we use Masonry for the grid and 3D transforms for navigating the …- 3.8k
- 0
响应式全宽度选项卡-Responsive Full Width Tabs
A full width tab component with some example media queries for adjusting the icons of the tabs and the content layout. The main idea is to show only icons for the mobile view and allow the text to app…- 1.8k
- 0
拆分布局-Split Layout
This Blueprint is a layout with two sides, sometimes seen in portfolio websites of couples and partners. The idea is to show an initial two-sided view and when clicking on a side, the whole page trans…- 2.1k
- 0
滚动效果布局-On Scroll Effect Layout
This Blueprint is a template for a on scroll effect layout. We’ve had some requests on how to achieve this effect of animating elements once they are in the viewport and decided to create a Blueprint …- 2.1k
- 0
响应式格子布局-Responsive Icon Grid
A grid of icons and text that adjusts its number of columns depending on the screen size as shown in some media queries. Some example effects are used for animating the elements on hover. 图标和文本的网格,根据屏…- 2.4k
- 0
两种格子布局-View Mode Switch
A layout switch with two viewing modes: grid and list. The layout is defined by a view class that gets applied to the main wrapper. Some example media queries show how to make things responsive. 一种具有两…- 2k
- 0
滚动动画标题-On-Scroll Animated Header
An animated header that will change its size on scroll. Once a certain amount of the page gets scrolled, the header will decrease its size and the inner elements will adjust their font-size/line heigh…- 1.9k
- 0
响应式多列表单-Responsive Multi-Column Form
This Blueprint is a simple, responsive multi-column form style that comes with example media queries for creating a switching layout. The form has three columns and depending on the screens size, they…- 2.1k
- 0
提示菜单-Tooltip Menu
This is a simple tooltip menu that will show a tooltip submenu when hovering over an item. The submenu will either appear above or below the main menu, depending on where more space is available. Usin…- 2.2k
- 0
UI细节产品网格布局-Product Grid Layout
A responsive product grid layout that comes with some UI details for inspiration. The product will rotate showing the backside of the item when the rotate button is clicked. Some examples of how toolt…- 1.9k
- 0
水平滑动菜单-Horizontal Slide Out Menu
A simple, horizontal slide out menu with a grid-like thumbnail layout for the submenu. The menu slides out from the top when a main menu item is clicked and the sub-items fade in. When clicking on ano…- 1.7k
- 0
垂直时间线内容-Vertical Timeline
This is a simple responsive timeline with alternating colors for the labels. An icon font is used for the icons in the timeline waypoints and some example media queries show how to adjust the timeline…- 1.9k
- 0
固定背景滚动布局-Fixed Background Scrolling Layout
A simple scrolling layout with fixed background images using background-attachment: fixed and a navigation. The page will scroll smoothly to the selected section. 一个简单的滚动布局与固定背景图像使用背景附件:固定和导航。页面将顺利滚动到…- 2.4k
- 0
web
幸运之星正在降临...
点击领取今天的签到奖励!
恭喜!您今天获得了{{mission.data.mission.credit}}积分
我的优惠劵
- ¥优惠劵使用时效:无法使用使用时效:
之前
使用时效:永久有效优惠劵ID:×
没有优惠劵可用!