a243398655
a243398655
采纳率33.3%
2015-05-19 06:57

这个网页代码的点击事件是怎样触发的!

已采纳
 <li class="tb-last">
 <a class="tb-tab-anchor" href="javascript:void(0);" hidefocus="true" data-spm-click="gostr=/tbdetail;locaid=d3" shortcut-key="g r" shortcut-label="查看成交记录" shortcut-effect="click" data-index="2">
   成交记录
   <em class="J_TDealCount">12</em>
 </a>
 <div class="tb-selected-indicator"></div>
 </li>
  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

8条回答

  • sjzquchen Sizy 6年前

    这是 JS代码写的事件。 它的触发事件在 一般都写在 页面的标签里面
    <br> function 方法名() {<br> 事件方法;<br> }<br>

    点赞 1 评论 复制链接分享
  • wsh1992o 存钱买冰棍 6年前

    这个事件的触发事件应该在a标签里

    点赞 2 评论 复制链接分享
  • a243398655 a243398655 6年前

    <br> function now(){ return +new Date}<br> g_config = {<br> startTime: now,<br> online: true ,<br> prefetch:[],<br> beacon:{}, timing:[], clock:[], t:&quot;20131018&quot;, ver:&quot;4.2.1&quot;, st:&quot;201404041900&quot;,<br> shopVer:2,<br> appId: 1 ,<br> itemId:&quot;44903055167&quot;,<br> shopId:&quot;104158681&quot;,<br> pageId:&quot;44903055167&quot;,<br> assetsHost:&quot;//assets.alicdn链接&quot;,<br> sellerNick:&quot;用户名&quot;,<br> sellerId:&quot;275108641&quot;,<br> shopName: &quot;\u6052\u8FDC\u5DE5\u63A7\u76F4\u9500&quot;,<br> enable:true, newDomain:true, webp:true, descWebP:false, asyncStock:true,<br> sibFirst:true, cdn:true, m_ratio:20,<br> p:1.0, type:&quot;cex&quot;<br> ,counterApi:&quot;//链接&quot;<br> ,rateCounterApi:&quot;//链接&quot;<br> ,toolbar:{delay:30, startTime:1417363200000,endTime:1418399999000} ,lazyload:&#39;#J_DivItemDesc&#39; ,ap_mods: {poc: [0.001],exit: [0.005],jstracker: [0.0001]}<br> ,delayInsurance: false<br> ,tadComponetCdn: true<br> };</p> <pre><code> g_config.tadInfo = {&quot;tad_second_area&quot;:[{&quot;name&quot;:&quot;掌柜推荐&quot;,&quot;type&quot;:4}],&quot;tad_first_area&quot;:[{&quot;name&quot;:&quot;掌柜推荐&quot;,&quot;type&quot;:4}]}; g_config.hasContract = true; </code></pre> <p>g_config.dynamicScript = function(f,c){var e=document,d=e.createElement(&quot;script&quot;);d.src=f;if(c){for(var b in c){d[b]=c[b];}};e.getElementsByTagName(&quot;head&quot;)[0].appendChild(d)};<br> g_config.dynamicScript(&quot;https:&quot; === location.protocol ? &quot;//链接&quot; :&quot;//链接&quot;)<br><br>



    <br> with(document)with(body)with(insertBefore(createElement(&quot;script&quot;),firstChild))setAttribute(&quot;exparams&quot;,&quot;category=item%5f50016437&amp;userid=&amp;at_isb=0&amp;at_autype=5%5f104158681&amp;aplus&amp;yunid=&amp;e8d763df70b35&amp;trid=b68ceea814320872456318499e&amp;asid=AQAAAADN6ltVY4NtIwAAAACMJ5H4AahaqQ==&quot;,id=&quot;tb-beacon-aplus&quot;,src=(location&gt;&quot;https&quot;?&quot;//g&quot;:&quot;//g&quot;)+&quot;.alicdn链接/alilog/mlog/aplus_v2.js&quot;)<br> if(!g_config.vdata){g_config.vdata={};} g_config.vdata.viewer={"id":"", "ct":"d9c255e4b7bbb32d84caf43da1d86c8b", "tnik":unescape(unescape("用户名"))}; g_config.vdata.sys={"now":1432087245000}; g_config.vdata.sys.toggle={ "thumb": false, "v":{"s1212v":"1"}, "p":1.0, "dcP":"true", "sl":3000 } (function(){ g_config.DyBase={iurl:"//item.链接",purl:"//paimai.链接",spurl:"//archer.链接",durl:"//design.链接",lgurl:"https://login.链接/member/login.jhtml?redirectURL=http%3A%2F%2Flocal_jboss%2Fitem.htm%3F_u%3Dk86bkp1243d%26id%3D44903055167%26mt%3D%26mt%3D", surl:"//upload.链接", shurl:"//shuo.链接", murl:"//meal.链接" }; g_config.idata={ item:{ id:"44903055167",title:"\u5168\u7403\u6700\u4E13\u4E1A\u7684\u7535\u6C14\u7ED8\u56FE\u8F6F\u4EF6eplan\u4E13\u4E1A\u89C6\u9891\u6559\u7A0B", skuComponentFirst: 'true', sellerNickGBK:'用户名', sellerNick:'用户名', rcid:'50025004', cid:'50016437', virtQuantity:'2', holdQuantity:'0', edit:true, status:0,xjcc:false, desc:false, price:15.00, bnow:true, prepay:true, dbst:1429598707000,tka:false, chong:false, ju:false, iju: false, cu: false, fcat:false, auto:"false", jbid:"",stepdata:{}, jmark:"", quickAdd: 1, initSizeJs:false, auctionImages:[ "//gd3.alicdn链接/bao/uploaded/i3/TB1N3QXHFXXXXXTXpXXXXXXXXXX_!!0-item_pic.jpg" , "//gd1.alicdn链接/bao/uploaded/i1/275108641/TB24gwycpXXXXaiXpXXXXXXXXXX_!!275108641.jpg" , "//gd2.alicdn链接/bao/uploaded/i2/275108641/TB24CozcpXXXXXiXpXXXXXXXXXX_!!275108641.jpg" , "//gd2.alicdn链接/bao/uploaded/i2/275108641/TB2BwICcpXXXXbSXXXXXXXXXXXX_!!275108641.jpg" , "//gd2.alicdn链接/bao/uploaded/i2/275108641/TB2A0cvcpXXXXcXXpXXXXXXXXXX_!!275108641.jpg" ], pic: "//gd3.alicdn链接/bao/uploaded/i3/TB1N3QXHFXXXXXTXpXXXXXXXXXX_!!0-item_pic.jpg", disableAddToCart: false }, seller:{ id:275108641, mode: 0, tad:1, shopAge:1, status:0 }, shop:{ id:"104158681", url: "//shop104158681.链接/", pid:"", sid:"1", xshop:true } ,toggle:{ "addCartJump":10 ,"fangXinTaoMod":0 ,"domainDegradeMod":0 } } })();

    if(!g_config.vdata.sys.toggle){g_config.vdata.sys.toggle={<br> &quot;thumb&quot;: false,<br> &quot;v&quot;:{&quot;s1212v&quot;:&quot;1&quot;},<br> &quot;p&quot;:1.0,<br> &quot;dcP&quot;:&quot;true&quot;,<br> &quot;sl&quot;:3000<br> }}

    (function(){var b="//链接",a="&ref="+encodeURIComponent(document.referrer.replace(/userid=%s/gi,""));if(b.length+a.length<2000){b+=a}g_config.dynamicScript(b,{onerror:function(){g_config.RequstPrior='falure'}})})();
    点赞 评论 复制链接分享
  • a243398655 a243398655 6年前
     ![图片说明](https://img-ask.csdn.net/upload/201505/20/1432100137_918313.jpg)
    
    点赞 评论 复制链接分享
  • amkogeo Kogeo_Guan 6年前

    data-spm-click 是 js 中 定义的1个 点击属性。通过拥有这个属性的 控件 event 来判断 是否被点击

    点赞 评论 复制链接分享
  • amkogeo Kogeo_Guan 6年前

    data-spm-click 是 js 中 定义的1个 点击属性。通过拥有这个属性的 控件 event 来判断 是否被点击

    点赞 评论 复制链接分享
  • u013890437 茂盛的小绿芽 6年前

    你可以根据a标签的class = tb-tab-anchor 去js搜一下,把js贴出来看看!

    点赞 评论 复制链接分享
  • showbo GoCityPass新加坡曼谷通票 6年前

    js代码动态绑定的,js事件没有直接写在dom里面

    点赞 评论 复制链接分享

相关推荐