Authored by lore-w

use.phtml报错问题 code review by liuyue

@@ -13,13 +13,11 @@ @@ -13,13 +13,11 @@
13 <script> 13 <script>
14 seajs.use(['js/product/list', 'js/product/product'], function (list, product) { 14 seajs.use(['js/product/list', 'js/product/product'], function (list, product) {
15 15
16 - $(window).resize(function () { 16 + window.onresize = function () {
17 setTimeout(function () { 17 setTimeout(function () {
18 - function () {  
19 - product.init(5);  
20 - } 18 + product.init(5);
21 }, 300); 19 }, 300);
22 - }); 20 + };
23 21
24 }); 22 });
25 </script> 23 </script>
@@ -30,13 +28,11 @@ @@ -30,13 +28,11 @@
30 <script> 28 <script>
31 seajs.use(['js/product/list', 'js/product/product'], function (list, product) { 29 seajs.use(['js/product/list', 'js/product/product'], function (list, product) {
32 30
33 - $(window).resize(function () { 31 + window.onresize = function () {
34 setTimeout(function () { 32 setTimeout(function () {
35 - function () {  
36 - product.init(4);  
37 - } 33 + product.init(4);
38 }, 300); 34 }, 300);
39 - }); 35 + };
40 36
41 }); 37 });
42 </script> 38 </script>