深圳外贸网站建设sz886(深圳外贸公司黄页)
本篇文章给大家谈谈深圳外贸网站建设sz886,以及深圳外贸公司黄页对应的知识点,希望对各位有所帮助,不要忘了收藏本站喔。
本文目录一览:
- 1、求教jquery选择第一个选项隐藏选择第二个选项显示这个div
- 2、想拿到标签下拿到第二和第三个标签该怎么做
- 3、jquery代码不起作用
- 4、深圳网站建设公司有哪些,我公司要设计一个外贸网站,想找个比较好点的!
- 5、在深圳做外贸网站建设,要多少钱?
- 6、解析vue响应式原理
求教jquery选择第一个选项隐藏选择第二个选项显示这个div
!doctype html
html
head
meta charset="utf-8"
title点击隐藏div/title
style
div,ul,li{ padding:0; margin:0; list-style:nonel}
.menu{ float:left;}
.menu ul li{ width:100px; height:30px; margin-bottom:5px; background:#06C; color:#fff; text-align:center; line-height:30px; cursor:pointer}
.menu ul li.cur{ background:#363;}
.content{ width:600px; height:300px; float:left; color:#fff;}
.content div{ background:#03C; width:100%; height:100%; }
/style
script type="text/javascript" src=""/script
script type="text/javascript"
$(document).ready(function() {
$(".menu li").click(function(){
//得到当前是第几个菜单点击了,深圳网站建设:
var index = $(".menu li").index(this);
//在点击的菜单上面加入一个cur样式,判断为当前点击到,删除没有点击到的cur
$(this).addClass("cur").siblings().removeClass("cur");
//点击第一个隐藏
if(index==0){
$(".content div").hide();
}else{
//第二个显示
$(".content div").show();
}
})
});
/script
/head
body
div class="31409ecdb78fdf32 menu"
ul
li class="9ecdb78fdf324357 cur"隐藏/li
li显示/li
/ul
/div
div class="b78fdf324357c4da content"
div订单内容/div
/div
/body
/html
想拿到标签下拿到第二和第三个标签该怎么做
!doctype html
html
head
meta charset="utf-8"
titleshow/title
style type="text/css"
div {
float: left;
width: 100px;
height: 80px;
border: 1px solid #0ff;
margin-right: 5px;
}
/style
!--$(".btn")是找到class="df324357c4dad857 btn"的信息,div a,就是找到div里面的a标签,eq就是得到第几个,从0开始算起第一个就是为0,第二个就是就为1(深圳网站建设:)--
script type="text/javascript" src=""/script
script type="text/javascript"
$(document).ready(function(e) {
$(".btn").click(function(){
alert($("div a").eq(1).text());
alert($("div a").eq(2).text());
});
});
/script
/head
body
div class="4357c4dad8577032 div"
a href=""独占网络/a
a href=""深圳网站建设/a
a href=""网站建设/a
/div
input type="button" value="得到信息" class="c4dad8577032a9b5 btn"/
/body
/html
jquery代码不起作用
!doctype html
html
head
meta charset="utf-8"
title代码不起作用/title
script type="text/javascript" src=""/script
script type="text/javascript"
//标准写法,就是需要声明为javascript:脚本(type="text/javascript")
$(document).ready(function() {
alert(1);
});
/script
script
$(function () {
alert(1)
//代码不起作用,原因有两种时候,一种就是没有引入jquery类库,第二种,就是有其它jquery代码报错(深圳网站建设)
})
/script
/head
body
/body
/html
深圳网站建设公司有哪些,我公司要设计一个外贸网站,想找个比较好点的!
深圳广智成科技有很公司,是一家以网站建设、网络推广、网络营销培训、网络营销服务外包为一体的业界实力很强的企业,与国内著名的网络营销专家建立合作关系,祥情你可以上他们网站去了解
在深圳做外贸网站建设,要多少钱?
一般外贸网站的价格都不会很贵,企业网站在2500-5000之间吧,具体要看功能和你的要求,建议你找专业公司来做,外贸网站一般是突出产品展示和公司介绍方面,之前我上
班的公司做了3500元,是找深圳的网络公司,公司名是深圳自己人策划公司,还不错,忘记联系方式了,你百度搜一下他们公司名,咨询一下他们。不过深圳有很多网络公司
可以多咨询几家,货比三家,最好能上门看一下,毕竟网站是要长期经营的。
解析vue响应式原理
import Dep from './dep'
import VNode from '../vdom/vnode'
import { arrayMethods } from './array'
import {
def,
warn,
hasOwn,
hasProto,
isObject,
isPlainObject,
isPrimitive,
isUndef,
isValidArrayIndex,
isServerRendering
} from '../util/index'
const arrayKeys = Object.getOwnPropertyNames(arrayMethods)
/**
* In some cases we may want to disable observation inside a component's
* update computation.
*/
export let shouldObserve: boolean = true
export function toggleObserving (value: boolean) {
shouldObserve = value
}
/**
* Observer class that is attached to each observed
* object. Once attached, the observer converts the target
* object's property keys into getter/setters that
* collect dependencies and dispatch updates.
*/
export class Observer {
value: any;
dep: Dep;
vmCount: number; // number of vms that have this object as root $data
constructor (value: any) {
this.value = value
this.dep = new Dep()
this.vmCount = 0
def(value, '__ob__', this)
if (Array.isArray(value)) {
if (hasProto) {
protoAugment(value, arrayMethods)
} else {
copyAugment(value, arrayMethods, arrayKeys)
}
this.observeArray(value)
} else {
this.walk(value)
}
}
/**
* Walk through all properties and convert them into
* getter/setters. This method should only be called when
* value type is Object.
*/
walk (obj: Object) {
const keys = Object.keys(obj)
for (let i = 0; i keys.length; i++) {
defineReactive(obj, keys[i])
}
}
/**
* Observe a list of Array items.
*/
observeArray (items: Array) {
for (let i = 0, l = items.length; i l; i++) {
observe(items[i])
}
}
}
// helpers
/**
* Augment a target Object or Array by intercepting
* the prototype chain using __proto__
*/
function protoAugment (target, src: Object) {
/* eslint-disable no-proto */
target.__proto__ = src
/* eslint-enable no-proto */
}
/**
* Augment a target Object or Array by defining
* hidden properties.
*/
/* istanbul ignore next */
function copyAugment (target: Object, src: Object, keys: Array) {
for (let i = 0, l = keys.length; i l; i++) {
const key = keys[i]
def(target, key, src[key])
}
}
/**
* Attempt to create an observer instance for a value,
* returns the new observer if successfully observed,
* or the existing observer if the value already has one.
*/
export function observe (value: any, asRootData: ?boolean): Observer | void {
if (!isObject(value) || value instanceof VNode) {
return
}
let ob: Observer | void
if (hasOwn(value, '__ob__') value.__ob__ instanceof Observer) {
ob = value.__ob__
} else if (
shouldObserve
!isServerRendering()
(Array.isArray(value) || isPlainObject(value))
Object.isExtensible(value)
!value._isVue
) {
ob = new Observer(value)
}
if (asRootData ob) {
ob.vmCount++
}
return ob
}
/**
* Define a reactive property on an Object.
*/
export function defineReactive (
obj: Object,
key: string,
val: any,
customSetter?: ?Function,
shallow?: boolean
) {
const dep = new Dep()
const property = Object.getOwnPropertyDescriptor(obj, key)
if (property property.configurable === false) {
return
}
// cater for pre-defined getter/setters
const getter = property property.get
const setter = property property.set
if ((!getter || setter) arguments.length === 2) {
val = obj[key]
}
let childOb = !shallow observe(val)
Object.defineProperty(obj, key, {
enumerable: true,
configurable: true,
get: function reactiveGetter () {
const value = getter ? getter.call(obj) : val
if (Dep.target) {
dep.depend()
if (childOb) {
childOb.dep.depend()
if (Array.isArray(value)) {
dependArray(value)
}
}
}
return value
},
set: function reactiveSetter (newVal) {
const value = getter ? getter.call(obj) : val
/* eslint-disable no-self-compare */
if (newVal === value || (newVal !== newVal value !== value)) {
return
}
/* eslint-enable no-self-compare */
if (process.env.NODE_ENV !== 'production' customSetter) {
customSetter()
}
// #7981: for accessor properties without setter
if (getter !setter) return
if (setter) {
setter.call(obj, newVal)
} else {
val = newVal
}
childOb = !shallow observe(newVal)
dep.notify()
}
})
}
/**
* Set a property on an object. Adds the new property and
* triggers change notification if the property doesn't
* already exist.
*/
export function set (target: Array | Object, key: any, val: any): any {
if (process.env.NODE_ENV !== 'production'
(isUndef(target) || isPrimitive(target))
) {
warn(`Cannot set reactive property on undefined, null, or primitive value: ${(target: any)}`)
}
if (Array.isArray(target) isValidArrayIndex(key)) {
target.length = Math.max(target.length, key)
target.splice(key, 1, val)
return val
}
if (key in target !(key in Object.prototype)) {
target[key] = val
return val
}
const ob = (target: any).__ob__
if (target._isVue || (ob ob.vmCount)) {
process.env.NODE_ENV !== 'production' warn(
'Avoid adding reactive properties to a Vue instance or its root $data ' +
'at runtime - declare it upfront in the data option.'
)
return val
}
if (!ob) {
target[key] = val
return val
}
defineReactive(ob.value, key, val)
ob.dep.notify()
return val
}
/**
* Delete a property and trigger change if necessary.
*/
export function del (target: Array | Object, key: any) {
if (process.env.NODE_ENV !== 'production'
(isUndef(target) || isPrimitive(target))
) {
warn(`Cannot delete reactive property on undefined, null, or primitive value: ${(target: any)}`)
}
if (Array.isArray(target) isValidArrayIndex(key)) {
target.splice(key, 1)
return
}
const ob = (target: any).__ob__
if (target._isVue || (ob ob.vmCount)) {
process.env.NODE_ENV !== 'production' warn(
'Avoid deleting properties on a Vue instance or its root $data ' +
'- just set it to null.'
)
return
}
if (!hasOwn(target, key)) {
return
}
delete target[key]
if (!ob) {
return
}
ob.dep.notify()
}
/**
* Collect dependencies on array elements when the array is touched, since
* we cannot intercept array element access like property getters.
*/
function dependArray (value: Array) {
for (let e, i = 0, l = value.length; i l; i++) {
e = value[i]
e e.__ob__ e.__ob__.dep.depend()
if (Array.isArray(e)) {
dependArray(e)
}
}
}
深圳网站建设
关于深圳外贸网站建设sz886和深圳外贸公司黄页的介绍到此就结束了,不知道你从中找到你需要的信息了吗 ?如果你还想了解更多这方面的信息,记得收藏关注本站。