怎么看不懂odoo里的js写法呢?
-
再请教一个问题:odoo theme教程里这段js
//开始(function() {
'use strict';
var website = odoo.website;
website.odoo_website = {};website.snippet.options.snippet_testimonial_options = website.snippet.Option.extend({ onFocus: function() { alert("On focus!"); } })})();
//结束
完全照着做的,却怎么也不运行?
而且这段js在浏览器里报错。
请教可知道是什么原因?感谢 -
再请教一个问题:odoo theme教程里这段js
//开始(function() {
'use strict';
var website = odoo.website;
website.odoo_website = {};website.snippet.options.snippet_testimonial_options = website.snippet.Option.extend({ onFocus: function() { alert("On focus!"); } })})();
//结束
完全照着做的,却怎么也不运行?
而且这段js在浏览器里报错。
请教可知道是什么原因?感谢 -
再请教一个问题:odoo theme教程里这段js
//开始(function() {
'use strict';
var website = odoo.website;
website.odoo_website = {};website.snippet.options.snippet_testimonial_options = website.snippet.Option.extend({ onFocus: function() { alert("On focus!"); } })})();
//结束
完全照着做的,却怎么也不运行?
而且这段js在浏览器里报错。
请教可知道是什么原因?感谢
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login