如图所示的电流I的值是多少( )
">
自考笔果题库APP<br>
<strong style="color: rgb(251,221,81)">更优刷题体验,尽在笔果APP!</strong>
</div>
<div class="tiyan" style="color:#fff;text-align:center;line-height:30px;width:80px;height:30px;background:#29c229;border:1px solid #3f3;right:20px;">立即下载</div>
</a>
</div>
</body>
</html>
<script>
$(function () {
var province = )
ul a ").click(function () {
$(this).children("li").addClass("user-center-selected").siblings().removeClass("user-center-selected")
});
//省份选择
$("#province-view>ul li").click(function () {
$(this).addClass("nav-selected-province").siblings().removeClass("nav-selected-province");
//获取选中的li里面的值
var id=$(this).val(); //24
var text=$(this).text(); //陕西
Cookies.set('province', text, { expires: 1, path: '/' });//1天过期
Cookies.set('province_id', id, { expires: 1, path: '/' });//1天过期
getMajor(id,1);
//把值放在省里,显示
$(".province").text(text);
});
function getMajor(id,type){ //通过省份id 获取专业
$.ajax({
url: "https://www.biguotk.com/m/province",
type: 'post',
dataType: 'json',
data: {province_id: id},
success:function(data) {
if(data.result_code==1){ // console.log(data.data[1]) 本 data.data[2] 专
if (type === 1){
var array = data.data[1];
} else{
var array = data.data[2];
}
createMajorList(array);
$("#major-view").show(500);
$("#major-view>ul li").click(function () { //选择专业
$(this).addClass("nav-selected-major").siblings().removeClass("nav-selected-major");
var id = $(this).attr('code'); //专业的id;
var name = $(this).text(); //专业
$(".major").text(name);
Cookies.set('professions_name',name,{ expires: 1, path: '/' }); //把专业名称缓存
selectMajor(id);
$("#major-view").hide(500);
});
}else{
alert('请稍后再试!');
}
}
})
}
$(".province-cell").click(function () {
$("#province-view").toggle(500)
});
$(".majors").click(function () {
var id = Cookies.get('province_id');
getMajor(id,1);
$("#major-view").toggle(500);
});
/* 切换专科本科*/
$(".layer-box .layer").click(function(){
$(this).addClass("selected").siblings().removeClass("selected");
// var id=$(this).val(); //24
var text=$(this).text(); //专科,本科
if (text === '专科'){
getMajor(Cookies.get('province_id'),2);
}else if(text === '本科' ){
getMajor(Cookies.get('province_id'),1);
}
// console.log(text);
});
/* 生成专业列表 */
function createMajorList(array) {
var count =array.length; //获取数组长度
var html = '';
for ($i = 0;$i
"+ array[$i]['name'] +" ";
}
$("#major-view>ul").html(html);
}
$("#major-view>ul li").click(function () {
$(this).addClass("nav-selected-major").siblings().removeClass("nav-selected-major");
});
/* 判断广告 */
if (Cookies.get('download_ads')== 1 ){
$("#footer_fill").hide();
$("#ff").hide();
}
/* 关闭广告 */
$("#ff .guanbi").on("click", function () {
$("#footer_fill").hide();
$("#ff").hide();
Cookies.set('download_ads','1', {expires:1,path:'/' });//1天过期
})
//点击下载链接
$(".zhengti").click(function () {
$.ajax({
url: "https://www.biguotk.com/m/download_increment",
type: 'post',
// dataType: 'json',
// data: {num:1},
success:function(data) {
if(data.code==1){
window.location.href="http://a.app.qq.com/o/simple.jsp?pkgname=com.dep.biguo";
}
}
});
})
});
/* 选择专业 */
function selectMajor(id){ //选择专业
if( $('#is_login').val()!= 0){
$.ajax({
url: "https://www.biguotk.com/update_professions",
type: 'post',
dataType: 'json',
data: {update_professions_id: id},
success:function(data) {
if(data.result_code==1){
layer.msg(data.result_info);
location.reload();
}else{
alert('请稍后再试');
}
}
})
}
localStorage.setItem('professions_id',id);
Cookies.set('professions_id',id,{ expires:1, path:'/'});
// alert ( Cookies.get('professions_id')) ;
}