南方医科大学2021年高考广东省招生录取详情[广东招生]

2023-11-17 14:49:05 招生消息
';//1element+='';//2element+='';element+=item['reply_comment_quote']?'':'';element+='';if(item['co_comment_list']!=null&&item['co_comment_list'].length){element+=`';}//element+='';//1returnelemen...

  ';//1

  element += '';//2

  element += '';

  element += item['reply_comment_quote'] ? '' : '';

  element += '';

  if(item['co_comment_list'] != null &&item['co_comment_list'].length ){

  element += `';

  }

  // element += ''; //1

  return element;

  }

  function initOpenAppNew(shortLink) {

  // 在微信就用微信的开放标签,不在的话就走标准流程

  if (!inApp()) {

  if (isAlipayClient()) {

  return

  } else if (isWeixin()) {

  initOpenAppBtnWxNew(shortLink)

  } else {

  initOpenAppBtnNew(shortLink)

  }

  }

  }

  function dateFilters (timespan) {

  timespan = timespan*1000

  var dateTime = new Date(timespan) // 将传进来的字符串或者毫秒转为标准时间

  var year = dateTime.getFullYear()

  var month = dateTime.getMonth() + 1

  var day = dateTime.getDate()

  var hour = dateTime.getHours()

  var minute = dateTime.getMinutes()

  // var second = dateTime.getSeconds()

  var millisecond = dateTime.getTime() // 将当前编辑的时间转换为毫秒

  var now = new Date() // 获取本机当前的时间

  var nowNew = now.getTime() // 将本机的时间转换为毫秒

  var milliseconds = 0

  var timeSpanStr

  milliseconds = nowNew - millisecond

  if (milliseconds -1) {

  window.AndroidWebView && window.AndroidWebView.showImage(obj.src, obj.srcs);

  return "";

  }

  return obj.src;

  }

  OCNews.jsShowProfile = function (string) {

  window.AndroidWebView && window.AndroidWebView.showProfile(string);

  }

  /* 应用于iOS的WKwebview */

  function chkIosNewVersion() {

  var navi = navigator.userAgent;

  if(navi.toLowerCase().indexOf('gkztczy')>-1){ // 兼容志愿版app

  return true

  }

  var matchArr = navi.match(/iOS/(d+?.d+?.d+?)_/);

  if (matchArr !== null) {

  var arr = matchArr[1].split(".");

  if (arr[0] > 2) {

  return true;

  } else if (arr[1] > 6) {

  return true;

  } else if (arr[2] > 1) {

  return true;

  }

  return false;

  } else {

  return false;

  }

  }

  function wkJsCall(string,noAlert) {

  if(!isInApp()){

  if(!noAlert){

  alert('点击右上角,选择"其他浏览器"打开网页!')

  }

  return;

  }

  if (chkIosNewVersion()) {

  window.webkit.messageHandlers.AppModel.postMessage({

  methodName: "showInfoFromJs",

  methodParam: {

  news_id: string.news_id,

  user_id: string.user_id,

  user_name: string.user_name,

  comment_id: string.comment_id,

  belong_comment_id: string.belong_comment_id,

  show_keyboard: string.show_keyboard

  }

  });

  } else {

  OCNews.jsCall(string);

  }

  }

  var checkVersion = function (version, callback, type) {

  var navi = navigator.userAgent

  var str = navi.indexOf('GKZTC')

  if (str > -1) {

  //是APP里面打开的网页

  appVersion(navi, version, callback, type)

  }

  }

  var appVersion = function (userAgent, version, callback, type) {

  var v = version

  var reg1 = /iOS/(d+?.d+?.d+?)_/

  var a = userAgent.match(reg1)

  if (a !== null) {

  var ao = a[1]

  var arr = getVersionArr(ao)

  var brr = getVersionArr(v)

  compareVersion(arr, brr, callback, type)

  return

  }

  var reg2 = /Android/(d+?.d+?.d+?)_/

  var b = userAgent.match(reg2)

  if (b !== null) {

  var bo = b[1]

  var arr = getVersionArr(bo)

  var brr = getVersionArr(v)

  compareVersion(arr, brr, callback, type)

  return

  }

  }

  var compareVersion = function (currentversionArr, versionArr, callback, type) {

  var a = currentversionArr

  var b = versionArr

  var c = compareArrStr(a, b)

  if (type == 1) {

  var judge = c == -1

  } else {

  var judge = c != -1

  }

  if (judge) {

  //进来这里执行说明当前版本比需要的版本低

  callback && callback()

  }

  }

  // 跳到评论,给app用

  var gotoComment = function () {

  // location.href = '#comment'

  document.getElementById('comment').scrollIntoView(true)

  }

  var getVersionArr = function (version) {

  var a = version.split(".")

  return a

  }

  var compareArrStr = function (arr, brr) {

  var a = arr

  var b = brr

  for (i = 0; i 0) {

  return 1

  }

  ;

  if (a[i] - b[i] = -1){

  str = str.replace(Regexp,function(a){

  return `${a}`

  })

  }

  if(str.indexOf('