• 2022-06-12 问题

    代码理解题。关于下面代码理解错误的是?[img=781x184]17e0c2ab3c89b83.png[/img] A: 36~41行定义了一个类,类名为JsBridge B: 37行的注解表示接下来的这个方法可以被js调用,但这个注解可有可无 C: 42行将JsBridge对象注入到WebView控件中,以通过网页中的js代码来进行调用 D: 42行所调用的方法的第二个参数的意义是js中可以通过android来指代所注入的对象。

    代码理解题。关于下面代码理解错误的是?[img=781x184]17e0c2ab3c89b83.png[/img] A: 36~41行定义了一个类,类名为JsBridge B: 37行的注解表示接下来的这个方法可以被js调用,但这个注解可有可无 C: 42行将JsBridge对象注入到WebView控件中,以通过网页中的js代码来进行调用 D: 42行所调用的方法的第二个参数的意义是js中可以通过android来指代所注入的对象。

  • 2021-04-14 问题

    在HTML中 标记的作用是 A. 在窗口中划一条水平线 B. 换行 C. 设置链接 D. 插入表格 正确答案:D 学生答案:B 错误 得分:0.0 分 取消 确定 
 Zepto(function($){
 
 //$("img:not(.ans-formula-moudle,.goTop)").on('click',function(){
 $("img:not(.ans-formula-moudle)").not('.goTop').on('click',function(){
 var url = $(this).attr("src");
 jsBridge.postNotification("CLIENT_PREVIEW_IMAGES", {
 imageUrls : [{
 imageUrl : url,
 getOriginSize : 1
 }],
 showIndex : 0
 });
 });
 
 
 $('.folding').each(function(index){
 var folding = $(this);
 folding.tap(function(){
 var zlo_opened = folding.find("a");
 if(zlo_opened.hasClass("zlo_opened")){
 folding.next().hide();
 zlo_opened.removeClass("zlo_opened");
 }else{
 folding.next().show();
 zlo_opened.addClass("zlo_opened");
 }
 });
 });
 
 });
 
 $('.folding2').each(function(index){
 var folding = $(this);
 folding.tap(function(){
 var zlo_opened = folding.find("a");
 if(zlo_opened.hasClass("zlo_opened")){
 folding.next().fadeOut();
 zlo_opened.removeClass("zlo_opened");
 $(folding.next()).data("loaded",true);
 }else{
 folding.next().fadeIn();
 zlo_opened.addClass("zlo_opened");
 if(!$(folding.next()).data("loaded")){
 voteStatistic(folding.next(),zlo_opened.attr("data"));
 }
 }
 });
 });
 
 function _jsBridgeReady() {
 var icon = ServerHost.moocDomain + "/images/work/phone/reWork.png";
 jsBridge.postNotification('CLIENT_CUSTOM_MENU', {
 show : '1',
 icon : icon,
 menu : '',
 option : "rework()",
 index : '0',
 width : '65',
 height : '18'
 });
 
 jsBridge.bind('CLIENT_REFRESH_EVENT', function(object){
 window.location.reload();
 });
 }
 
 function rework() {
 var answerId = $("#examAnswerId").val();
 var relationId = $("#examRelationId").val();
 var courseId = $("#courseId").val();
 var classId = $("#classId").val();
 
 $(".cx_alert-txt").html("打回后学生需要重新提交考试!");
 $("#okBtn").html("打回");
 $(".cx_alert").css("display", "block");
 $(".cx_alert-box").css("display", "block");
 $("#okBtn").unbind();
 $("#cancelBtn").unbind();
 $("#okBtn").on("click", function() {
 $(".cx_alert").css("display", "none");
 $(".cx_alert-box").css("display", "none");
 var url = "/exam/phone/reTest?classId=" + classId + "&answerId=" + answerId + "&relationId=" + relationId + "&courseId=" + courseId;
 $.ajax({
 url : url,
 type : 'get',
 dataType : 'json',
 success : function(data) {
 openWindowHintClient(1, data.msg, function() {
 jsBridge.postNotification("CLIENT_REFRESH_STATUS", {
 "status" : 1
 });
 jsBridge.postNotification('CLIENT_EXIT_LEVEL', {
 message : ''
 });
 }, 1000);
 }
 });
 });
 $("#cancelBtn").on("click", function() {
 $(".cx_alert").css("display", "none");
 $(".cx_alert-box").css("display", "none");
 });
 }
 
/images/phone/goTop.png

    在HTML中 标记的作用是 A. 在窗口中划一条水平线 B. 换行 C. 设置链接 D. 插入表格 正确答案:D 学生答案:B 错误 得分:0.0 分 取消 确定 
 Zepto(function($){
 
 //$("img:not(.ans-formula-moudle,.goTop)").on('click',function(){
 $("img:not(.ans-formula-moudle)").not('.goTop').on('click',function(){
 var url = $(this).attr("src");
 jsBridge.postNotification("CLIENT_PREVIEW_IMAGES", {
 imageUrls : [{
 imageUrl : url,
 getOriginSize : 1
 }],
 showIndex : 0
 });
 });
 
 
 $('.folding').each(function(index){
 var folding = $(this);
 folding.tap(function(){
 var zlo_opened = folding.find("a");
 if(zlo_opened.hasClass("zlo_opened")){
 folding.next().hide();
 zlo_opened.removeClass("zlo_opened");
 }else{
 folding.next().show();
 zlo_opened.addClass("zlo_opened");
 }
 });
 });
 
 });
 
 $('.folding2').each(function(index){
 var folding = $(this);
 folding.tap(function(){
 var zlo_opened = folding.find("a");
 if(zlo_opened.hasClass("zlo_opened")){
 folding.next().fadeOut();
 zlo_opened.removeClass("zlo_opened");
 $(folding.next()).data("loaded",true);
 }else{
 folding.next().fadeIn();
 zlo_opened.addClass("zlo_opened");
 if(!$(folding.next()).data("loaded")){
 voteStatistic(folding.next(),zlo_opened.attr("data"));
 }
 }
 });
 });
 
 function _jsBridgeReady() {
 var icon = ServerHost.moocDomain + "/images/work/phone/reWork.png";
 jsBridge.postNotification('CLIENT_CUSTOM_MENU', {
 show : '1',
 icon : icon,
 menu : '',
 option : "rework()",
 index : '0',
 width : '65',
 height : '18'
 });
 
 jsBridge.bind('CLIENT_REFRESH_EVENT', function(object){
 window.location.reload();
 });
 }
 
 function rework() {
 var answerId = $("#examAnswerId").val();
 var relationId = $("#examRelationId").val();
 var courseId = $("#courseId").val();
 var classId = $("#classId").val();
 
 $(".cx_alert-txt").html("打回后学生需要重新提交考试!");
 $("#okBtn").html("打回");
 $(".cx_alert").css("display", "block");
 $(".cx_alert-box").css("display", "block");
 $("#okBtn").unbind();
 $("#cancelBtn").unbind();
 $("#okBtn").on("click", function() {
 $(".cx_alert").css("display", "none");
 $(".cx_alert-box").css("display", "none");
 var url = "/exam/phone/reTest?classId=" + classId + "&answerId=" + answerId + "&relationId=" + relationId + "&courseId=" + courseId;
 $.ajax({
 url : url,
 type : 'get',
 dataType : 'json',
 success : function(data) {
 openWindowHintClient(1, data.msg, function() {
 jsBridge.postNotification("CLIENT_REFRESH_STATUS", {
 "status" : 1
 });
 jsBridge.postNotification('CLIENT_EXIT_LEVEL', {
 message : ''
 });
 }, 1000);
 }
 });
 });
 $("#cancelBtn").on("click", function() {
 $(".cx_alert").css("display", "none");
 $(".cx_alert-box").css("display", "none");
 });
 }
 
/images/phone/goTop.png

  • 1